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

View File

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