From 4fec7fd9e8797fd65c5d035be71d56f1205ab0b3 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Tue, 26 Jun 2018 16:58:03 -0400 Subject: [PATCH] More restrictive fuzzy search (Closes #988) --- packages/insomnia-app/app/common/misc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/insomnia-app/app/common/misc.js b/packages/insomnia-app/app/common/misc.js index e0c3568109..434274230a 100644 --- a/packages/insomnia-app/app/common/misc.js +++ b/packages/insomnia-app/app/common/misc.js @@ -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; }