asagi4 / comfyui-prompt-control

ComfyUI nodes for prompt editing and LoRA control
GNU General Public License v3.0
165 stars 14 forks source link

Handle spaces in STYLE function #41

Closed DrJKL closed 2 months ago

DrJKL commented 2 months ago

Before

Style text Works?
STYLE(A1111,length+mean)
STYLE(A1111, length+mean)
STYLE(A1111 ,length+mean)

Example error

[WARNING] PromptControl: Unrecognized prompt style: A1111 . Using comfy
[WARNING] PromptControl: Unrecognized prompt normalization:  length+mean. Using none
[WARNING] PromptControl: Unrecognized prompt style: A1111 . Using comfy
[WARNING] PromptControl: Unrecognized prompt normalization:  length+mean. Using none
[WARNING] PromptControl: Unrecognized prompt style: A1111 . Using comfy
[WARNING] PromptControl: Unrecognized prompt normalization:  length+mean. Using none
[WARNING] PromptControl: Unrecognized prompt style: A1111 . Using comfy
[WARNING] PromptControl: Unrecognized prompt normalization:  length+mean. Using none

Repro Workflow

style_test.json

asagi4 commented 2 months ago

Good catch. Thanks!