mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-14 10:06:58 -04:00
Converted MagicObject to just dictionaries
This commit is contained in:
parent
c8b474eef4
commit
1bbcc8d542
44 changed files with 879 additions and 890 deletions
|
@ -6,7 +6,6 @@
|
|||
|
||||
import Operation from "../Operation.mjs";
|
||||
import UAParser from "ua-parser-js";
|
||||
import magicObject from "../lib/MagicObject.mjs";
|
||||
|
||||
/**
|
||||
* Parse User Agent operation
|
||||
|
@ -26,14 +25,16 @@ class ParseUserAgent extends Operation {
|
|||
this.inputType = "string";
|
||||
this.outputType = "string";
|
||||
this.args = [];
|
||||
this.checks = new magicObject([
|
||||
{
|
||||
match: "^(User-Agent:|Mozilla\\/)[^\\n\\r]+\\s*$",
|
||||
flags: "i",
|
||||
magic: true,
|
||||
args: []
|
||||
}
|
||||
]);
|
||||
this.checks =
|
||||
{
|
||||
inRegexes: [
|
||||
{
|
||||
match: "^(User-Agent:|Mozilla\\/)[^\\n\\r]+\\s*$",
|
||||
flags: "i",
|
||||
magic: true,
|
||||
args: []
|
||||
}]
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue