match: change strings.IndexAny to strings.ContainsAny

This commit is contained in:
Sergey 2019-01-10 23:22:24 +05:00
parent a5d6946387
commit 617d93fa6d
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, "*?[")
}