mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-21 14:47:46 -04:00
More restrictive fuzzy search (Closes #988)
This commit is contained in:
@@ -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