mime-checking added to magic now

This commit is contained in:
n1073645 2019-12-06 12:24:15 +00:00
parent 0a4fae1576
commit ee37731858
5 changed files with 37 additions and 3 deletions

View file

@ -28,7 +28,7 @@ class ObjectIdentifierToHex extends Operation {
this.args = [];
this.checks = new magicObject([
{
match: "^\\s*([0-9]{1,3}\\.?)+\\s*$",
match: "^\\s*([0-9]{1,3}\\.)+[0-9]{1,3}\\s*$",
flags: "",
magic: true,
args: []

View file

@ -44,7 +44,12 @@ class RenderImage extends Operation {
args: ["Raw"],
useful: true
}
]);
],
null,
{
type: "Image",
}
);
}
/**