mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-14 10:06:58 -04:00
Made the input regexes more robust
This commit is contained in:
parent
aa206d7b37
commit
a2eadee06a
9 changed files with 42 additions and 17 deletions
|
@ -39,19 +39,19 @@ class ChangeIPFormat extends Operation {
|
|||
];
|
||||
this.patterns = [
|
||||
{
|
||||
match: "([0-9]{1,3}\\.){3}[0-9]{1,3}",
|
||||
match: "^\\s*([0-9]{1,3}\\.){3}[0-9]{1,3}$",
|
||||
flags: "",
|
||||
args: ["Dotted Decimal","Decimal"]
|
||||
args: ["Dotted Decimal", "Decimal"]
|
||||
},
|
||||
{
|
||||
match: "([0-9]{1,3}\\.){3}[0-9]{1,3}",
|
||||
match: "^\\s*([0-9]{1,3}\\.){3}[0-9]{1,3}$",
|
||||
flags: "",
|
||||
args: ["Dotted Decimal","Octal"]
|
||||
args: ["Dotted Decimal", "Octal"]
|
||||
},
|
||||
{
|
||||
match: "([0-9]{1,3}\\.){3}[0-9]{1,3}",
|
||||
match: "^\\s*([0-9]{1,3}\\.){3}[0-9]{1,3}$",
|
||||
flags: "",
|
||||
args: ["Dotted Decimal","Hex"]
|
||||
args: ["Dotted Decimal", "Hex"]
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue