Check boundaries
This commit is contained in:
parent
349a936c2d
commit
dbb724c3f3
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue