add quoting for infotext values that have a colon in them

This commit is contained in:
AUTOMATIC 2023-05-28 10:39:57 +03:00
parent f9809e6e40
commit b957dcfece

View File

@ -35,7 +35,7 @@ def reset():
def quote(text): 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 text
return json.dumps(text, ensure_ascii=False) return json.dumps(text, ensure_ascii=False)