Fix tokenization of +1/-1 emojis
parent
1615fc1f34
commit
2d05276dc4
|
@ -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('')
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue