Skip to content

Commit

Permalink
Added handling of directories specified with trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbn committed Feb 28, 2024
1 parent e9d5916 commit 71e1f2b
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 71e1f2b

Please sign in to comment.