From 5f1b8c8da30326afa16ef0b114ef980daf57ee6c Mon Sep 17 00:00:00 2001 From: sgmklp <2394501736@qq.com> Date: Sat, 15 Oct 2022 23:06:19 +0800 Subject: [PATCH] . --- javascript/tagAutocomplete.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/javascript/tagAutocomplete.js b/javascript/tagAutocomplete.js index 3eed218..f4b1269 100644 --- a/javascript/tagAutocomplete.js +++ b/javascript/tagAutocomplete.js @@ -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;