game-crawler/utils/is_russian.go
2024-09-24 18:17:11 +08:00

13 lines
171 B
Go

package utils
import "unicode"
func ContainsRussian(s string) bool {
for _, r := range s {
if unicode.Is(unicode.Cyrillic, r) {
return true
}
}
return false
}