ext/json/ext/parser/parser.rl in json_pure-1.0.1 vs ext/json/ext/parser/parser.rl in json_pure-1.0.2
- old
+ new
@@ -215,10 +215,10 @@
action exit { fbreak; }
main := '-'? (
(('0' | [1-9][0-9]*) '.' [0-9]+ ([Ee] [+\-]?[0-9]+)?)
- | ([1-9][0-9]* ([Ee] [+\-]?[0-9]+))
+ | (('0' | [1-9][0-9]*) ([Ee] [+\-]?[0-9]+))
) (^[0-9Ee.\-] @exit );
}%%
static char *JSON_parse_float(JSON_Parser *json, char *p, char *pe, VALUE *result)
{