From d49d9fd75538ac8a4e6da3c1eb7bed77c20bb48f Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Tue, 7 May 2024 15:35:00 -0400 Subject: [PATCH] typo --- shared/naturalcrit/codeEditor/autocompleteEmoji.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }