mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-12-15 07:03:06 +03:00
fix to allow empty {} values
This commit is contained in:
parent
b99a4f769f
commit
f6a97868e5
@ -1,7 +1,7 @@
|
||||
import re
|
||||
import gradio as gr
|
||||
|
||||
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+)$")
|
||||
|
Loading…
Reference in New Issue
Block a user