Fix tokenization of +1/-1 emojis

exclude-unsupported-native-emojis
Etienne Lemay 2016-07-18 14:23:28 -04:00
parent 1615fc1f34
commit 2d05276dc4
1 changed files with 2 additions and 2 deletions

View File

@ -37,8 +37,8 @@ function search(value, maxResults = 75) {
return results return results
} }
function tokenize (string) { function tokenize (string = '') {
if (['-', '-1', '+', '+1'].indexOf(string) == 0) { if (string[0] == '-' || string[0] == '+') {
return string.split('') return string.split('')
} }