From 617d93fa6d241c0ff55646563bdbe7d2f11f8ba9 Mon Sep 17 00:00:00 2001 From: Sergey Date: Thu, 10 Jan 2019 23:22:24 +0500 Subject: [PATCH] match: change strings.IndexAny to strings.ContainsAny --- match.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/match.go b/match.go index c18a87f..7db4b7d 100644 --- a/match.go +++ b/match.go @@ -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, "*?[") }