Fix :
blocking emoji insertion from emoji picker
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user