13 lines
171 B
Go
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
|
||
|
}
|