From 47bbefd81fb9bc801514eb54faf65d8348d2c6d0 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Fri, 5 Feb 2021 18:24:15 +0000 Subject: [PATCH] Fixed recursive scoring results in fuzzy match lib --- src/core/lib/FuzzySearch.mjs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/core/lib/FuzzySearch.mjs b/src/core/lib/FuzzySearch.mjs index 662d7760..70fd1494 100644 --- a/src/core/lib/FuzzySearch.mjs +++ b/src/core/lib/FuzzySearch.mjs @@ -181,7 +181,6 @@ function fuzzyMatchRecursive( // Return best result if (recursiveMatch && (!matched || bestRecursiveScore > outScore)) { // Recursive score is better than "this" - matches = [...bestRecursiveMatches]; outScore = bestRecursiveScore; return [true, outScore, calcMatchRanges(matches)]; } else if (matched) {