Force “-” search to only return “-1” emoji

exclude-unsupported-native-emojis
Etienne Lemay 2016-07-22 16:29:05 -04:00
parent 5721f5f694
commit 65f046b5f3
1 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,10 @@ function search(value, maxResults = 75) {
aIndex = index,
length = 0
if (value == '-') {
return [emojisList['-1']]
}
for (let char of value.split('')) {
length++