Skip to content

Commit

Permalink
fix fieldname regex to accept additional [-/] chars
Browse files Browse the repository at this point in the history
  • Loading branch information
wkpark committed Oct 1, 2023
1 parent 7026b96 commit deeec0b
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 @@ -9,7 +9,7 @@
from modules import shared, ui_tempdir, script_callbacks, processing
from PIL import Image

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

0 comments on commit deeec0b

Please sign in to comment.