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

@ -5,7 +5,6 @@
*/
import Operation from "../Operation.mjs";
import magicObject from "../lib/MagicObject.mjs";
/**
* Decode NetBIOS Name operation
@ -31,14 +30,16 @@ class DecodeNetBIOSName extends Operation {
"value": 65
}
];
this.checks = new magicObject([
{
match: "^\\s*\\S{32}$",
flags: "",
magic: true,
args: [65]
}
]);
this.checks =
{
inRegexes: [
{
match: "^\\s*\\S{32}$",
flags: "",
magic: true,
args: [65]
}]
};
}
/**