diff --git a/shared/naturalcrit/codeEditor/autocompleteEmoji.js b/shared/naturalcrit/codeEditor/autocompleteEmoji.js index 66881e81e..92acc7d0e 100644 --- a/shared/naturalcrit/codeEditor/autocompleteEmoji.js +++ b/shared/naturalcrit/codeEditor/autocompleteEmoji.js @@ -66,7 +66,7 @@ const showAutocompleteEmoji = function(CodeMirror, editor) { const curlyToCursor = textToCursor.slice(textToCursor.indexOf(`{`)); const curlySpanRegex = /{(?=((?:[:=](?:"[\w,\-()#%. ]*"|[\w\-()#%.]*)|[^"':={}\s]*)*))\1$/g; - if (regex.test(curlyToCursor)) + if (curlySpanRegex.test(curlyToCursor)) return; }