validateGlobPattern is now responsibility of the caller

This commit is contained in:
Fabio Bozzo
2024-09-18 11:12:46 +02:00
parent 16ba4b392d
commit a19d3505fe

View File

@@ -24,10 +24,6 @@ func validateGlobPattern(pattern string) bool {
// globMatch matches a string against a pattern with * wildcards, handling escaped '\*' literals.
func globMatch(pattern, str string) bool {
if !validateGlobPattern(pattern) {
return false
}
// i is the index for the pattern
// j is the index for the string
var i, j int