Changed alphanumeric check to "or" instead of "and".
This commit is contained in:
parent
bb570de994
commit
e3bc27ac15
1 changed files with 1 additions and 1 deletions
|
|
@ -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".}=
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue