From 0674fabd0d82c69c02ff362762815c4536687b95 Mon Sep 17 00:00:00 2001 From: ljleb Date: Sat, 22 Jul 2023 07:10:20 -0400 Subject: [PATCH] fix AND linebreaks --- modules/prompt_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/prompt_parser.py b/modules/prompt_parser.py index 0069d8b0e..c514e63b4 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 = []