Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Sadeghi85 committed Oct 9, 2023
1 parent bf3570b commit 98ca26d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions title.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ def make_title(array_input, type):
json.dumps(
ast.literal_eval(
re.sub(
r":\s*(?<!['\"])([^'\"]+?)['\"]?\s*(?=[,\n}])",
r": '\1'",
r"(?<=[{,\r\n])(\s*['\"][^'\"]+['\"]\s*:\s*)([^'\"\r\n,}]+)(?=[,\r\n}])",
r"\1'\2'",
json_string,
)
)
Expand Down

0 comments on commit 98ca26d

Please sign in to comment.