mirror of
https://github.com/sd-webui/stable-diffusion-webui.git
synced 2024-12-14 23:02:00 +03:00
Merge pull request #775 from codedealer/dev
fix: regex escape characters in streamlit webui
This commit is contained in:
commit
3da598a522
@ -450,9 +450,9 @@ prompt_parser = re.compile("""
|
||||
(?: # non-capture group
|
||||
:+ # match one or more ':' characters
|
||||
(?P<weight> # capture group for 'weight'
|
||||
-?\d+(?:\.\d+)? # match positive or negative decimal number
|
||||
-?\\d+(?:\\.\\d+)? # match positive or negative decimal number
|
||||
)? # end weight capture group, make optional
|
||||
\s* # strip spaces after weight
|
||||
\\s* # strip spaces after weight
|
||||
| # OR
|
||||
$ # else, if no ':' then match end of line
|
||||
) # end non-capture group
|
||||
|
Loading…
Reference in New Issue
Block a user