From e5cb37dfe458a8009bfecd9de38e77be548cd53c Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Thu, 5 Mar 2015 14:42:02 +0100 Subject: [PATCH] For now, enable the RE --- lslopt/lsljson.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lslopt/lsljson.py b/lslopt/lsljson.py index 3db4c3f..4891a69 100644 --- a/lslopt/lsljson.py +++ b/lslopt/lsljson.py @@ -53,7 +53,7 @@ jsonnumbug_re = re.compile(ur'-?(?:[0-9]*([Ee])-?[0-9]*\.?[0-9]*|(?=[0-9Ee.])[0- # disallowing zeros, sometimes even when legal (e.g. 0e0) #jsonnum_re = re.compile(ur'-?(?:(?=[1-9]|\.(?:[^e]|$)|0(?:[^0-9e]|$))[0-9]*([Ee])[+-]?[0-9]*\.?[0-9]*|(?=[1-9]|\.(?:[^e]|$)|0(?:[^0-9e]|$))[0-9]*(\.?[0-9]*(?:[Ee][+-]?)?[0-9]*))') # They've fixed BUG-6657 by bringing BUG-6466 back to life. -jsonnumbug_re = re.compile(ur'-?(?:[0-9]*([Ee])-?[0-9]*\.?[0-9]*|(?=[0-9Ee.])[0-9]*(\.?[0-9]*(?:[Ee]-?)?[0-9]*))') +jsonnum_re = re.compile(ur'-?(?:[0-9]*([Ee])-?[0-9]*\.?[0-9]*|(?=[0-9Ee.])[0-9]*(\.?[0-9]*(?:[Ee]-?)?[0-9]*))') jsonstring_re = re.compile(ur'"(?:[^"\\]|\\.)*"')