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