Small regex fix to make style completion work after [ or before ,

This commit is contained in:
DominikDoom
2024-01-26 20:39:33 +01:00
parent a63ce64f4e
commit afa13306ef
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
const STYLE_REGEX = /(\$(\d*)\(?)[^$|\]\s]*\)?/;
const STYLE_REGEX = /(\$(\d*)\(?)[^$|\[\],\s]*\)?/;
const STYLE_TRIGGER = () => TAC_CFG.useStyleVars && tagword.match(STYLE_REGEX);
var lastStyleVarIndex = "";