Skip to content

Commit

Permalink
add quoting for infotext values that have a colon in them
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTOMATIC1111 committed May 28, 2023
1 parent f9809e6 commit b957dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/generation_parameters_copypaste.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def reset():


def quote(text):
if ',' not in str(text) and '\n' not in str(text):
if ',' not in str(text) and '\n' not in str(text) and ':' not in str(text):
return text

return json.dumps(text, ensure_ascii=False)
Expand Down

0 comments on commit b957dcf

Please sign in to comment.