[GH-ISSUE #44] Have problem detecting newlines in prompt #34

Closed
opened 2026-10-30 21:17:37 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @byzod on GitHub (Oct 28, 2022).
Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/44

tagcomplete works perfectly everywhere in prompt in one line, for example cat, dog, girl

But with newlines (which is valid for webui), it has problem handling it

For example in prompt:

cat, dog,⛔
⛔girl

tagcomplete is not working in position of ⛔ mark, while it's working in position of ✅ mark

cat, dog,✅girl

demo:
An1

Originally created by @byzod on GitHub (Oct 28, 2022). Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/44 tagcomplete works perfectly everywhere in prompt in one line, for example `cat, dog, girl` But with newlines (which is valid for webui), it has problem handling it For example in prompt: ``` cat, dog,⛔ ⛔girl ``` tagcomplete is not working in position of `⛔` mark, while it's working in position of `✅` mark ``` cat, dog,✅girl ``` demo: ![An1](https://user-images.githubusercontent.com/848607/198686880-b5ac128c-176d-420d-a800-1bdd44e4236d.gif)
Author
Owner

@DominikDoom commented on GitHub (Oct 28, 2022):

Good catch, the regex didn't match anything in that case because newlines weren't trimmed out of the search word.
As long as the tag is on the same line, it should work now.

<!-- gh-comment-id:1295241886 --> @DominikDoom commented on GitHub (Oct 28, 2022): Good catch, the regex didn't match anything in that case because newlines weren't trimmed out of the search word. As long as the tag is on the same line, it should work now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DominikDoom/a1111-sd-webui-tagcomplete#34
No description provided.