diff options
author | bptato <nincsnevem662@gmail.com> | 2023-12-14 22:35:06 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-12-14 22:37:27 +0100 |
commit | 16f7b0976a016f91858f612e712c1e7e85ff823f (patch) | |
tree | 795d80b2aa25b1563be28ab5e49ece86167e4e23 /src/utils/twtstr.nim | |
parent | 3adc85aebcb0458fe946731f4ee8e43cbd3fd093 (diff) | |
download | chawan-16f7b0976a016f91858f612e712c1e7e85ff823f.tar.gz |
charcategory: move out isDigitAscii
so we do not have to import unicode
Diffstat (limited to 'src/utils/twtstr.nim')
-rw-r--r-- | src/utils/twtstr.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim index da9af19a..0168ad63 100644 --- a/src/utils/twtstr.nim +++ b/src/utils/twtstr.nim @@ -96,7 +96,7 @@ func camelToKebabCase*(s: string): string = result &= c func isAscii*(r: Rune): bool = - return cast[uint32](r) < 128 + return uint32(r) < 128 func startsWithNoCase*(str, prefix: string): bool = if str.len < prefix.len: return false |