summary refs log tree commit diff stats
path: root/lib/pure/json.nim
diff options
context:
space:
mode:
authordom96 <dominikpicheta@googlemail.com>2011-02-13 00:49:42 +0000
committerdom96 <dominikpicheta@googlemail.com>2011-02-13 00:49:42 +0000
commit0b143a46a5837119a716f9e2e22034bc52dd7878 (patch)
tree9a6db081fa5df2af1b0d4985c783beda908368e8 /lib/pure/json.nim
parent8915df00e2c3ef391bca81e86323b48573a764b8 (diff)
downloadNim-0b143a46a5837119a716f9e2e22034bc52dd7878.tar.gz
Forgot that capital E can be used in floats too, I hate case sensitivity.
Diffstat (limited to 'lib/pure/json.nim')
-rwxr-xr-xlib/pure/json.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/json.nim b/lib/pure/json.nim
index 8d4264598..7fbc8bfcf 100755
--- a/lib/pure/json.nim
+++ b/lib/pure/json.nim
@@ -326,7 +326,7 @@ proc getTok(my: var TJsonParser): TTokKind =
   case my.buf[my.bufpos]
   of '-', '.', '0'..'9': 
     parseNumber(my)
-    if {'.', 'e'} in my.a:
+    if {'.', 'e', 'E'} in my.a:
       result = tkFloat
     else:
       result = tkInt