DominikDoom / a1111-sd-webui-tagcomplete

Booru style tag autocompletion for AUTOMATIC1111's Stable Diffusion web UI
MIT License
2.59k stars 309 forks source link

Wildcard autocompletion in the prompt box cutoff from colon #267

Closed Yinzo closed 10 months ago

Yinzo commented 10 months ago

Describe the bug

After dynamic prompts is installed, we can get wildcard autocompletion in the prompt box. It works most of time except there are colons ":" in the prompts, it will just cuts off the prompt, only offer the text after the first colon.

To Reproduce

using this test file:

$cat test.txt
1girl, trailblazer \(honkai: star rail\), honkai star rail

Expected behaviour

Autocomplete offer the whole prompt: 1girl, trailblazer \(honkai: star rail\), honkai star rail

Captures

Here is the autocomplete shows for the test.txt before apply 1

Here is the autocomplete result after apply 2

DominikDoom commented 10 months ago

Fixed, this was caused by a broken sanitization rule. I just removed it since it was a remnant from a really early version and not needed anymore.