浏览代码

add quoting for infotext values that have a colon in them

AUTOMATIC 2 年之前
父节点
当前提交
b957dcfece
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/generation_parameters_copypaste.py

+ 1 - 1
modules/generation_parameters_copypaste.py

@@ -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)