Fix `:` blocking emoji insertion from emoji picker
This commit is contained in:
parent
7ca0dfdfbe
commit
be819f9fdd
|
@ -140,7 +140,7 @@ function getWordAtIndex(
|
|||
|
||||
const word = str.slice(start, end);
|
||||
|
||||
if (word === ':' && str.length > 1) {
|
||||
if (word === ':' && index + 1 <= str.length) {
|
||||
return getWordAtIndex(str, index + 1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue