From 16f7b0976a016f91858f612e712c1e7e85ff823f Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 14 Dec 2023 22:35:06 +0100 Subject: charcategory: move out isDigitAscii so we do not have to import unicode --- src/utils/twtstr.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/twtstr.nim') 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 -- cgit 1.4.1-2-gfad0