update image parameters regex for #7231

This commit is contained in:
AUTOMATIC 2023-01-28 11:11:47 +03:00
parent e8a41df49f
commit 4aa7f5b5b9
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ from modules import shared, ui_tempdir, script_callbacks
import tempfile
from PIL import Image
re_param_code = r'\s*([\w ]+):\s*("(?:\\|\"|[^\"])+"|[^,]*)(?:,|$)'
re_param_code = r'\s*([\w ]+):\s*("(?:\\"[^,]|\\"|\\|[^\"])+"|[^,]*)(?:,|$)'
re_param = re.compile(re_param_code)
re_params = re.compile(r"^(?:" + re_param_code + "){3,}$")
re_imagesize = re.compile(r"^(\d+)x(\d+)$")