Tweak the matcher

pull/4161/head
Elijah 6 years ago
parent ff78ebdc2e
commit ecac9bd165

@ -33,7 +33,14 @@
}
function doesMatch(a, b) {
return ~a.indexOf(b) || ~b.indexOf(a);
function oneWay(a, b) {
a = a.trim();
b = b.trim();
return ~a.indexOf(b);
}
return oneWay(a, b) || oneWay(b, a);
}
function search(query, maxResults = 10) {

Loading…
Cancel
Save