From a5f66c4eab2d5a39308b9b90602f684d4f890b7d Mon Sep 17 00:00:00 2001 From: Thomas Laich Date: Tue, 21 Apr 2026 23:02:55 +0200 Subject: [PATCH] fix: normalize path separators for Windows compatibility --- format/glob.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/format/glob.go b/format/glob.go index c7104e30..4b7791b2 100644 --- a/format/glob.go +++ b/format/glob.go @@ -2,6 +2,7 @@ package format import ( "fmt" + "strings" "github.com/gobwas/glob" ) @@ -23,6 +24,8 @@ func compileGlobs(patterns []string) ([]glob.Glob, error) { } func pathMatches(path string, globs []glob.Glob) bool { + path = strings.ReplaceAll(path, "\\", "/") + for idx := range globs { if globs[idx].Match(path) { return true