Skip to content

Commit

Permalink
chore(marmounter): ignore if line starts with # or empty
Browse files Browse the repository at this point in the history
  • Loading branch information
rinsuki committed Jan 25, 2024
1 parent 2f75f7a commit 9f01456
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions marmounter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,11 @@ func (fs *MayakashiFS) ParseFile(file string) error {
return fs.parseMARFile(file, options)
}

if file == "" || strings.HasPrefix(file, "# ") {
// ignore empty or starts with "# "
return nil
}

return fmt.Errorf("unknown file type (filename suffix): %s", file)
}

Expand Down

0 comments on commit 9f01456

Please sign in to comment.