diff options
author | Jabasukuriputo Wang <wfjsw@users.noreply.github.com> | 2023-07-22 21:58:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-22 21:58:59 +0800 |
commit | 9421c11346784383c648bf105e2fda1815b16a4b (patch) | |
tree | c6de5e9b265aad8907f809279bdb4db09d111a83 /modules/prompt_parser.py | |
parent | b2f0040da7df65a5deac34f59263cf518d970dcd (diff) | |
parent | 0615b3c5325ca87e1d3bbf28d637d6b966c76880 (diff) |
Merge branch 'dev' into ext-inst-pbar
Diffstat (limited to 'modules/prompt_parser.py')
-rw-r--r-- | modules/prompt_parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/prompt_parser.py b/modules/prompt_parser.py index b29d079d..203ae1ac 100644 --- a/modules/prompt_parser.py +++ b/modules/prompt_parser.py @@ -178,7 +178,7 @@ def get_learned_conditioning(model, prompts: SdConditioning | list[str], 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: SdConditioning | list[str]):
|