summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorJoey Payne <jyapayne@gmail.com>2015-10-10 08:40:31 -0600
committerJoey Payne <jyapayne@gmail.com>2015-10-10 08:40:52 -0600
commite3bc27ac15ae59630c76f9652db249f05faf8cfb (patch)
treef73acbc0ef1af983033f54078a54f30c2d768729 /lib/pure
parentbb570de994cd263b23e01111336a121671e06a3f (diff)
downloadNim-e3bc27ac15ae59630c76f9652db249f05faf8cfb.tar.gz
Changed alphanumeric check to "or" instead of "and".
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/strutils.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim
index 005715a30..05862ca87 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".}=