Skip to content

Commit

Permalink
Windows fix
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-debricked committed Apr 1, 2024
1 parent 06a2897 commit 10675ff
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/file/exclusion.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,12 @@ func Exclusions() []string {
func Excluded(exclusions []string, inclusions []string, path string) bool {
path = filepath.ToSlash(path)
for _, inclusion := range inclusions {
inclusion = filepath.ToSlash(inclusion)
matched, _ := doublestar.Match(inclusion, path)
if matched {
return false
}
}
for _, exclusion := range exclusions {
exclusion = filepath.ToSlash(exclusion)
matched, _ := doublestar.Match(exclusion, path)
if matched {
return true
Expand Down

0 comments on commit 10675ff

Please sign in to comment.