Magic now understands an output regex

This commit is contained in:
n1073645 2019-12-03 12:20:59 +00:00
parent f73b374786
commit a2ce9853b3
2 changed files with 12 additions and 3 deletions

View file

@ -280,10 +280,10 @@ class Magic {
break;
case "Output":
if(!(new RegExp(op.match, op.flags).test(Utils.arrayBufferToStr(output)))){
if (shouldMatch)
if (op.shouldMatch)
return;
} else {
if (!shouldMatch)
if (!op.shouldMatch)
return;
}
break;