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;