mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-14 01:56:54 -04:00
Modifications made.
This commit is contained in:
parent
4247ddb0ce
commit
6373ad0bc3
6 changed files with 13 additions and 60 deletions
|
@ -37,28 +37,6 @@ class ChangeIPFormat extends Operation {
|
|||
"value": ["Dotted Decimal", "Decimal", "Octal", "Hex"]
|
||||
}
|
||||
];
|
||||
this.checks =
|
||||
{
|
||||
inRegexes: [
|
||||
{
|
||||
match: "^\\s*([0-9]{1,3}\\.){3}[0-9]{1,3}$",
|
||||
flags: "",
|
||||
magic: false,
|
||||
args: ["Dotted Decimal", "Decimal"]
|
||||
},
|
||||
{
|
||||
match: "^\\s*([0-9]{1,3}\\.){3}[0-9]{1,3}$",
|
||||
flags: "",
|
||||
magic: false,
|
||||
args: ["Dotted Decimal", "Octal"]
|
||||
},
|
||||
{
|
||||
match: "^\\s*([0-9]{1,3}\\.){3}[0-9]{1,3}$",
|
||||
flags: "",
|
||||
magic: false,
|
||||
args: ["Dotted Decimal", "Hex"]
|
||||
}]
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -55,16 +55,6 @@ class FormatMACAddresses extends Operation {
|
|||
"value": false
|
||||
}
|
||||
];
|
||||
this.checks =
|
||||
{
|
||||
inRegexes: [
|
||||
{
|
||||
match: "^\\s*([0-9a-f]{2}:){5}[0-9a-f]{2}$",
|
||||
flags: "i",
|
||||
magic: false,
|
||||
args: ["Both", true, true, true, true, true]
|
||||
}]
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue