소스 검색

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)