diff --git a/packages/builder/src/components/common/CodeEditor/index.ts b/packages/builder/src/components/common/CodeEditor/index.ts index 3a2d9624a6..a750ca52a1 100644 --- a/packages/builder/src/components/common/CodeEditor/index.ts +++ b/packages/builder/src/components/common/CodeEditor/index.ts @@ -136,7 +136,7 @@ export const snippetAutoComplete = (snippets: Snippet[]) => { return null } - const word = context.matchBefore(/\w*/) + const word = context.matchBefore(/\b\w*/) if (!word || (word.from == word.to && !context.explicit)) { return null }