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)
|
.slice(0, index + 1)
|
||||||
.replace(/\s+$/, '')
|
.replace(/\s+$/, '')
|
||||||
.search(/\S+$/);
|
.search(/\S+$/);
|
||||||
const end = str.slice(index).search(/(?:\s|$)/) + index;
|
const end = str.slice(index).search(/(?:[^a-z0-9-_+]|$)/) + index;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
start,
|
start,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue