Skip to content

Commit

Permalink
Merge pull request #53 from jonasbn/improvement_to_handling_directories
Browse files Browse the repository at this point in the history
Added handling of directories specified with trailing slash
  • Loading branch information
jonasbn authored Feb 28, 2024
2 parents e9d5916 + 71e1f2b commit f395608
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.git
main.go
_site
assets
_site/
assets/
cover.out
dictionary.dic
examples
Expand Down
8 changes: 7 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,13 @@ func realMain() int {
return nil
}

if ignoreObject.MatchesPath(path) {
var aliasedPath = path

if info.IsDir() {
aliasedPath += "/"
}

if ignoreObject.MatchesPath(path) || ignoreObject.MatchesPath(aliasedPath) {
if config.Excluded {
if config.Color {
colorize.Set(ignoredColor)
Expand Down

0 comments on commit f395608

Please sign in to comment.