diff options
author | dom96 <dominikpicheta@googlemail.com> | 2011-02-13 00:49:42 +0000 |
---|---|---|
committer | dom96 <dominikpicheta@googlemail.com> | 2011-02-13 00:49:42 +0000 |
commit | 0b143a46a5837119a716f9e2e22034bc52dd7878 (patch) | |
tree | 9a6db081fa5df2af1b0d4985c783beda908368e8 /lib/pure/json.nim | |
parent | 8915df00e2c3ef391bca81e86323b48573a764b8 (diff) | |
download | Nim-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-x | lib/pure/json.nim | 2 |
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 |