From e3bc27ac15ae59630c76f9652db249f05faf8cfb Mon Sep 17 00:00:00 2001 From: Joey Payne Date: Sat, 10 Oct 2015 08:40:31 -0600 Subject: [PATCH] Changed alphanumeric check to "or" instead of "and". --- lib/pure/strutils.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim index 005715a30a..05862ca87f 100644 --- a/lib/pure/strutils.nim +++ b/lib/pure/strutils.nim @@ -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".}=