This commit is contained in:
sgmklp
2022-10-15 23:06:19 +08:00
parent db6dcc9568
commit 5f1b8c8da3

View File

@@ -234,10 +234,10 @@ function insertTextAtCursor(textArea, result, tagword) {
if (acConfig.escapeParentheses) {
sanitizedText = sanitizedText
.replaceAll("(", "\\(")
.replaceAll(")", "\\)")
.replaceAll("[", "\\[")
.replaceAll("]", "\\]");
.replaceAll("(", "\\(")
.replaceAll(")", "\\)")
.replaceAll("[", "\\[")
.replaceAll("]", "\\]");
}
var prompt = textArea.value;