asagi4 / comfyui-prompt-control

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

Handle spaces in STYLE function #41

Closed DrJKL closed 7 months ago

DrJKL commented 7 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 7 months ago

Good catch. Thanks!