Fix tokenization of +1/-1 emojis

release
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
}
function tokenize (string) {
if (['-', '-1', '+', '+1'].indexOf(string) == 0) {
function tokenize (string = '') {
if (string[0] == '-' || string[0] == '+') {
return string.split('')
}