Skip to content

Commit

Permalink
fix: sort full matches instead of initial matches in GetGlobMatches f…
Browse files Browse the repository at this point in the history
…unction
  • Loading branch information
haitham911 committed Nov 24, 2024
1 parent 052673b commit 63ffce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/glob_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func GetGlobMatches(pattern string) ([]string, error) {
fullMatches = append(fullMatches, path.Join(base, match))
}
// Sort matches lexicographically
sort.Strings(matches)
sort.Strings(fullMatches)

getGlobMatchesSyncMap.Store(pattern, strings.Join(fullMatches, ","))

Expand Down

0 comments on commit 63ffce1

Please sign in to comment.