Skip to content

Commit cad87bf

Browse files
committed
Merge pull request #11927 from ljleb/fix-AND
Fix composable diffusion weight parsing
1 parent 704628b commit cad87bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎modules/prompt_parser.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def get_learned_conditioning(model, prompts: SdConditioning | list[str], steps):
178178

179179

180180
re_AND = re.compile(r"\bAND\b")
181-
re_weight = re.compile(r"^(.*?)(?:\s*:\s*([-+]?(?:\d+\.?|\d*\.\d+)))?\s*$")
181+
re_weight = re.compile(r"^((?:\s|.)*?)(?:\s*:\s*([-+]?(?:\d+\.?|\d*\.\d+)))?\s*$")
182182

183183

184184
def get_multicond_prompt_list(prompts: SdConditioning | list[str]):

0 commit comments

Comments
 (0)