Now all multi-byte characters are considered a wordchar
This commit is contained in:
Niklas Hennigs
2016-09-07 17:29:38 +02:00
parent cc6189b7ce
commit cd52aaba13

View File

@@ -65,7 +65,7 @@ func Max(a, b int) int {
func IsWordChar(str string) bool {
if len(str) > 1 {
// Unicode
return false
return true
}
c := str[0]
return (c >= '0' && c <= '9') || (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c == '_')