Fix emoji autocompletion absorbing non-spaced emojis
This commit is contained in:
parent
5b653b3b46
commit
4d659f69cb
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ function getWordAtIndex(str: string, index: number) {
|
|||
.slice(0, index + 1)
|
||||
.replace(/\s+$/, '')
|
||||
.search(/\S+$/);
|
||||
const end = str.slice(index).search(/(?:\s|$)/) + index;
|
||||
const end = str.slice(index).search(/(?:[^a-z0-9-_+]|$)/) + index;
|
||||
|
||||
return {
|
||||
start,
|
||||
|
|
Loading…
Add table
Reference in a new issue