Fix glob matching when backslashes are used as separators
This commit is contained in:
@@ -94,6 +94,7 @@ func AssociateFilesWithCommands(files []string, commands []ModifyCommand) (map[s
|
||||
}
|
||||
for _, command := range commands {
|
||||
for _, glob := range command.Files {
|
||||
glob = strings.ReplaceAll(glob, "\\", "/")
|
||||
static, pattern := SplitPattern(glob)
|
||||
patternFile := strings.Replace(file, static+`/`, "", 1)
|
||||
matches, err := Matches(patternFile, pattern)
|
||||
|
Reference in New Issue
Block a user