mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 23:06:16 -04:00
Fixed recursive scoring results in fuzzy match lib
This commit is contained in:
parent
50f796049c
commit
47bbefd81f
1 changed files with 0 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue