mirror of
https://github.com/gchq/CyberChef
synced 2025-12-05 23:53:27 +00:00
ESM: Added BackgroundWorkerWaiter for running Magic on output in the background
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user