Fix : blocking emoji insertion from emoji picker

This commit is contained in:
Josh Perez 2020-02-18 08:58:23 -08:00 committed by GitHub
parent 7ca0dfdfbe
commit be819f9fdd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}