Skip to content

Commit e7965a5

Browse files
committed
Merge pull request #12876 from ljleb/fix-re
Fix generation params regex
1 parent ae7291f commit e7965a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/generation_parameters_copypaste.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from modules import shared, ui_tempdir, script_callbacks, processing
1010
from PIL import Image
1111

12-
re_param_code = r'\s*([\w ]+):\s*("(?:\\"[^,]|\\"|\\|[^\"])+"|[^,]*)(?:,|$)'
12+
re_param_code = r'\s*([\w ]+):\s*("(?:\\.|[^\\"])+"|[^,]*)(?:,|$)'
1313
re_param = re.compile(re_param_code)
1414
re_imagesize = re.compile(r"^(\d+)x(\d+)$")
1515
re_hypernet_hash = re.compile("\(([0-9a-f]+)\)$")

0 commit comments

Comments
 (0)