vendor: Update github.com/gobwas/glob
This commit is contained in:
13
vendor/github.com/gobwas/glob/util/strings/strings.go
generated
vendored
Normal file
13
vendor/github.com/gobwas/glob/util/strings/strings.go
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
package strings
|
||||
|
||||
import "strings"
|
||||
|
||||
func IndexAnyRunes(s string, rs []rune) int {
|
||||
for _, r := range rs {
|
||||
if i := strings.IndexRune(s, r); i != -1 {
|
||||
return i
|
||||
}
|
||||
}
|
||||
|
||||
return -1
|
||||
}
|
||||
Reference in New Issue
Block a user