From 040be3516290004531fcb268d4311b126b654bd3 Mon Sep 17 00:00:00 2001 From: Dominik Reh Date: Tue, 24 Jan 2023 15:03:56 +0100 Subject: [PATCH] Don't escape parentheses for loras and hypernets --- javascript/tagAutocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/tagAutocomplete.js b/javascript/tagAutocomplete.js index 7a84566..de0ca85 100644 --- a/javascript/tagAutocomplete.js +++ b/javascript/tagAutocomplete.js @@ -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(")", "\\)")