More restrictive fuzzy search (Closes #988)

This commit is contained in:
Gregory Schier committed 2018-06-26 16:58:03 -04:00
1 parent 935d5cb602
commit 4fec7fd9e8
1 file changed
+1 -1
+1 -1
View File
@@ -264,7 +264,7 @@ export function fuzzyMatch(
const results = searchTerms.reduce((prevResult, nextTerm) => {
const nextResult = fuzzysort.single(nextTerm, text);
if (!nextResult) {
if (!nextResult || nextResult.score < -999) {
return prevResult;
}