1
0
Fork 0

Merge branch v2.11 into v3.0

This commit is contained in:
Fernandez Ludovic 2024-06-04 23:58:38 +02:00
commit 6ca4c5da5c
20 changed files with 220 additions and 217 deletions

View file

@ -264,7 +264,7 @@ func queryRegexp(tree *matchersTree, queries ...string) error {
// IsASCII checks if the given string contains only ASCII characters.
func IsASCII(s string) bool {
for i := 0; i < len(s); i++ {
for i := range len(s) {
if s[i] >= utf8.RuneSelf {
return false
}