From 46d07d703ae924cabdcf0d06408b9a6557bf85cd Mon Sep 17 00:00:00 2001 From: DominikDoom Date: Tue, 12 Sep 2023 12:56:55 +0200 Subject: [PATCH] =?UTF-8?q?Improve=20parentheses=20handling=20Still=20not?= =?UTF-8?q?=20perfect,=20but=20ho=C3=BCpefully=20a=20good=20compromise.=20?= =?UTF-8?q?Should=20be=20less=20annoying=20during=20normal=20prompt=20writ?= =?UTF-8?q?ing.=20Closes=20#107?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- javascript/tagAutocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/tagAutocomplete.js b/javascript/tagAutocomplete.js index 963a00b..775ba39 100644 --- a/javascript/tagAutocomplete.js +++ b/javascript/tagAutocomplete.js @@ -384,7 +384,7 @@ function isEnabled() { const WEIGHT_REGEX = /[([]([^()[\]:|]+)(?::(?:\d+(?:\.\d+)?|\.\d+))?[)\]]/g; const POINTY_REGEX = /<[^\s,<](?:[^\t\n\r,<>]*>|[^\t\n\r,> ]*)/g; const COMPLETED_WILDCARD_REGEX = /__[^\s,_][^\t\n\r,_]*[^\s,_]__[^\s,_]*/g; -const NORMAL_TAG_REGEX = /[^\s,|<>)\]]+|\]:]+_\([^\s,|<>\]:]*\)?|[^\s,|<>():\]]+|?/g; const TAG_REGEX = new RegExp(`${POINTY_REGEX.source}|${COMPLETED_WILDCARD_REGEX.source}|${NORMAL_TAG_REGEX.source}`, "g");