More restrictive fuzzy search (Closes #988)

This commit is contained in:
Gregory Schier
2018-06-26 16:58:03 -04:00
parent 935d5cb602
commit 4fec7fd9e8

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;
}