Converted MagicObject to just dictionaries

This commit is contained in:
n1073645 2019-12-18 10:55:16 +00:00
parent c8b474eef4
commit 1bbcc8d542
44 changed files with 879 additions and 890 deletions

View file

@ -7,7 +7,6 @@
import Operation from "../Operation.mjs";
import Utils from "../Utils.mjs";
import {fromHex} from "../lib/Hex.mjs";
import magicObject from "../lib/MagicObject.mjs";
import * as criteria from "../lib/MagicCriteria.mjs";
/**
@ -28,20 +27,20 @@ class FromHexContent extends Operation {
this.inputType = "string";
this.outputType = "byteArray";
this.args = [];
this.checks = new magicObject([
{
match: "^\\s*.*?\\|([0-9a-f]{2})+\\|.*$",
flags: "i",
magic: true,
args: []
}
],
null,
null,
this.checks =
{
input: [3, 4],
output: criteria.entropyOfText
});
inRegexes: [
{
match: "^\\s*.*?\\|([0-9a-f]{2})+\\|.*$",
flags: "i",
magic: true,
args: []
}],
entropyTests: {
input: [3, 4],
output: criteria.entropyOfText
}
};
}
/**