JSVar: add cornercase

This commit is contained in:
smurail 2014-09-23 11:01:09 +02:00 committed by Romain Bignon
commit 128739aceb

View file

@ -89,7 +89,7 @@ class JSVar(Regexp):
(?:(?:\d+\.\d*|\d*\.\d+)(?:[eE]\d+)? (?:(?:\d+\.\d*|\d*\.\d+)(?:[eE]\d+)?
|\d+[eE]\d+)) |\d+[eE]\d+))
|(?P<int>[-+]?\s*(?:0[bBxXoO])?\d+) # int ? |(?P<int>[-+]?\s*(?:0[bBxXoO])?\d+) # int ?
|(?P<str>(?:%s|%s)) # str ? |(?:(?:new\s+String\()?(?P<str>(?:%s|%s))) # str ?
|(?P<bool>true|false) # bool ? |(?P<bool>true|false) # bool ?
|(?P<None>null)) # None ? |(?P<None>null)) # None ?
""" % (_quoted('"'), _quoted("'")) """ % (_quoted('"'), _quoted("'"))