We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0f5c8e commit 940c020Copy full SHA for 940c020
Lib/json/scanner.py
@@ -9,7 +9,7 @@
9
__all__ = ['make_scanner']
10
11
NUMBER_RE = re.compile(
12
- r'(-?(?:0|[1-9]\d*))(\.\d+)?([eE][-+]?\d+)?',
+ r'(-?(?:0|[1-9][0-9]*))(\.[0-9]+)?([eE][-+]?[0-9]+)?',
13
(re.VERBOSE | re.MULTILINE | re.DOTALL))
14
15
def py_make_scanner(context):
0 commit comments