mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-17 04:24:51 -04:00
More restrictive fuzzy search (Closes #988)
This commit is contained in:
1 parent
935d5cb602
commit
4fec7fd9e8
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user