mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-21 12:00:44 +00:00
Changed alphanumeric check to "or" instead of "and".
This commit is contained in:
@@ -72,7 +72,7 @@ proc isAlphaNumeric*(c: char): bool {.noSideEffect, procvar,
|
||||
## Checks whether or not `c` is alphanumeric.
|
||||
##
|
||||
## This checks a-z, A-Z, 0-9 ASCII characters only.
|
||||
return c in Letters and c in Digits
|
||||
return c in Letters or c in Digits
|
||||
|
||||
proc isDigit*(c: char): bool {.noSideEffect, procvar,
|
||||
rtl, extern: "nsuIsDigitChar".}=
|
||||
|
||||
Reference in New Issue
Block a user