Skip to content

Commit 1acd35d

Browse files
committed
Remove non-greedy matching in string regex
1 parent 0abe76a commit 1acd35d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/json/tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def main():
8383

8484

8585
color_pattern = re.compile(r'''
86-
(?P<string>"(\\.|[^"\\])*?") | # String
86+
(?P<string>"(\\.|[^"\\])*") | # String
8787
(?P<number>NaN|-?Infinity|[0-9\-+.Ee]+) | # Number
8888
(?P<boolean>true|false) | # Boolean
8989
(?P<null>null) # Null

0 commit comments

Comments
 (0)