Fixed recursive scoring results in fuzzy match lib

This commit is contained in:
n1474335 2021-02-05 18:24:15 +00:00
parent 50f796049c
commit 47bbefd81f

View File

@ -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) {