Check boundaries

This commit is contained in:
Adria Navarro 2025-02-10 20:34:14 +01:00
parent 349a936c2d
commit dbb724c3f3
1 changed files with 1 additions and 1 deletions

View File

@ -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
}