Don't escape parentheses for loras and hypernets

This commit is contained in:
Dominik Reh
2023-01-24 15:03:56 +01:00
parent 316d45e2fa
commit 040be35162

View File

@@ -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(")", "\\)")