python3.11支持
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
# SPDX-FileCopyrightText: 2025 QinHan
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
__version__="1.4.2.post1"
|
||||
__version__="1.4.2.post2"
|
||||
@@ -87,7 +87,7 @@ list[dict[str, str]], list[tuple[int, int]]]:
|
||||
|
||||
def fix_json_string(json_string):
|
||||
def repl(m:re.Match):
|
||||
return f'{'"' if m.group(1) else ""},\n"{m.group(2)}":{'"' if m.group(3) else ""}'
|
||||
return f"""{'"' if m.group(1) else ""},\n"{m.group(2)}":{'"' if m.group(3) else ""}"""
|
||||
fixed_json = re.sub(
|
||||
r"""([“”"])?\s*[,,]\s*["“”]\s*(\d+)\s*["“”]\s*[::]\s*(["“”])?""",
|
||||
repl,
|
||||
|
||||
Reference in New Issue
Block a user