Merge pull request #192 from saromanov/fix-match

match: change strings.IndexAny to strings.ContainsAny
This commit is contained in:
Michail Kargakis 2020-04-11 00:18:31 +02:00 committed by GitHub
commit 02a77d47d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -106,5 +106,5 @@ func glob(fs Fs, dir, pattern string, matches []string) (m []string, e error) {
// recognized by Match.
func hasMeta(path string) bool {
// TODO(niemeyer): Should other magic characters be added here?
return strings.IndexAny(path, "*?[") >= 0
return strings.ContainsAny(path, "*?[")
}