mirror of
https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git
synced 2026-03-04 04:40:00 +00:00
Don't escape parentheses for loras and hypernets
This commit is contained in:
@@ -326,7 +326,7 @@ function insertTextAtCursor(textArea, result, tagword) {
|
||||
sanitizedText = CFG.replaceUnderscores ? text.replaceAll("_", " ") : text;
|
||||
}
|
||||
|
||||
if (CFG.escapeParentheses) {
|
||||
if (CFG.escapeParentheses && tagType === ResultType.tag) {
|
||||
sanitizedText = sanitizedText
|
||||
.replaceAll("(", "\\(")
|
||||
.replaceAll(")", "\\)")
|
||||
|
||||
Reference in New Issue
Block a user