mirror of
https://github.com/gchq/CyberChef
synced 2025-12-15 15:53:30 +00:00
Fixed recursive scoring results in fuzzy match lib
This commit is contained in:
@@ -181,7 +181,6 @@ function fuzzyMatchRecursive(
|
|||||||
// Return best result
|
// Return best result
|
||||||
if (recursiveMatch && (!matched || bestRecursiveScore > outScore)) {
|
if (recursiveMatch && (!matched || bestRecursiveScore > outScore)) {
|
||||||
// Recursive score is better than "this"
|
// Recursive score is better than "this"
|
||||||
matches = [...bestRecursiveMatches];
|
|
||||||
outScore = bestRecursiveScore;
|
outScore = bestRecursiveScore;
|
||||||
return [true, outScore, calcMatchRanges(matches)];
|
return [true, outScore, calcMatchRanges(matches)];
|
||||||
} else if (matched) {
|
} else if (matched) {
|
||||||
|
|||||||
Reference in New Issue
Block a user