mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-23 08:16:17 -04:00
ESM: Added BackgroundWorkerWaiter for running Magic on output in the background
This commit is contained in:
parent
37c8d1b7ea
commit
1ef4f71d8b
6 changed files with 229 additions and 8 deletions
|
@ -344,6 +344,11 @@ class Magic {
|
|||
aScore += a.entropy;
|
||||
bScore += b.entropy;
|
||||
|
||||
// A result with no recipe but matching ops suggests there are better options
|
||||
if ((!a.recipe.length && a.matchingOps.length) &&
|
||||
b.recipe.length)
|
||||
return 1;
|
||||
|
||||
return aScore - bScore;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue