Fix :
blocking emoji insertion from emoji picker
This commit is contained in:
parent
7ca0dfdfbe
commit
be819f9fdd
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ function getWordAtIndex(
|
||||||
|
|
||||||
const word = str.slice(start, end);
|
const word = str.slice(start, end);
|
||||||
|
|
||||||
if (word === ':' && str.length > 1) {
|
if (word === ':' && index + 1 <= str.length) {
|
||||||
return getWordAtIndex(str, index + 1);
|
return getWordAtIndex(str, index + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue