snapshot of https://github.com/centrifugal/centrifugo.git (master, 2026-09-16; blobs > 131072B omitted)
This commit is contained in:
12
internal/tools/ascii.go
Normal file
12
internal/tools/ascii.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package tools
|
||||
|
||||
import "unicode"
|
||||
|
||||
func IsASCII(s string) bool {
|
||||
for _, c := range s {
|
||||
if c > unicode.MaxASCII {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user