Added the magic flag to regexes to say whether it is useful for magic to use

This commit is contained in:
n1073645 2019-12-04 14:12:27 +00:00
parent 4d9fb7ef58
commit 8df9d6fcf6
43 changed files with 142 additions and 32 deletions

View file

@ -38,10 +38,11 @@ class RenderImage extends Operation {
];
this.checks = new magicObject([
{
"match": "^(?:\\xff\\xd8\\xff|\\x89\\x50\\x4e\\x47|\\x47\\x49\\x46|.{8}\\x57\\x45\\x42\\x50|\\x42\\x4d)",
"flags": "",
"args": ["Raw"],
"useful": true
match: "^(?:\\xff\\xd8\\xff|\\x89\\x50\\x4e\\x47|\\x47\\x49\\x46|.{8}\\x57\\x45\\x42\\x50|\\x42\\x4d)",
flags: "",
magic: true,
args: ["Raw"],
useful: true
}
]);
}