diff --git a/cli/htmgo/internal/dirutil/glob.go b/cli/htmgo/internal/dirutil/glob.go index 628a3ef..dd0f3b3 100644 --- a/cli/htmgo/internal/dirutil/glob.go +++ b/cli/htmgo/internal/dirutil/glob.go @@ -8,7 +8,8 @@ import ( func matchesAny(patterns []string, path string) bool { for _, pattern := range patterns { - matched, err := doublestar.Match(pattern, strings.ReplaceAll(path, `\`, "/")) + matched, err := + doublestar.Match(strings.ReplaceAll(pattern, `\`, "/"), strings.ReplaceAll(path, `\`, "/")) if err != nil { fmt.Printf("Error matching pattern: %v\n", err) return false