aboutsummaryrefslogtreecommitdiffstats
path: root/modules/prompt_parser.py
diff options
context:
space:
mode:
authorljleb <set>2023-07-22 11:10:20 +0000
committerljleb <set>2023-07-22 11:10:20 +0000
commit0674fabd0d82c69c02ff362762815c4536687b95 (patch)
tree64977bb86a6289a02246a122a73ef2c7c5193161 /modules/prompt_parser.py
parentf865d3e11647dfd6c7b2cdf90dde24680e58acd8 (diff)
downloadstable-diffusion-webui-gfx803-0674fabd0d82c69c02ff362762815c4536687b95.tar.gz
stable-diffusion-webui-gfx803-0674fabd0d82c69c02ff362762815c4536687b95.tar.bz2
stable-diffusion-webui-gfx803-0674fabd0d82c69c02ff362762815c4536687b95.zip
fix AND linebreaks
Diffstat (limited to 'modules/prompt_parser.py')
-rw-r--r--modules/prompt_parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/prompt_parser.py b/modules/prompt_parser.py
index 0069d8b0..c514e63b 100644
--- a/modules/prompt_parser.py
+++ b/modules/prompt_parser.py
@@ -153,7 +153,7 @@ def get_learned_conditioning(model, prompts, steps):
re_AND = re.compile(r"\bAND\b")
-re_weight = re.compile(r"^(.*?)(?:\s*:\s*([-+]?(?:\d+\.?|\d*\.\d+)))?\s*$")
+re_weight = re.compile(r"^(\s*.*?)(?:\s*:\s*([-+]?(?:\d+\.?|\d*\.\d+)))?\s*$")
def get_multicond_prompt_list(prompts):
res_indexes = []