Finally working

This commit is contained in:
n1073645 2019-12-04 09:07:12 +00:00
parent 49a05c5d73
commit ee3e6751be
3 changed files with 23 additions and 25 deletions

View file

@ -26,13 +26,13 @@ class DefangIPAddresses extends Operation {
this.inputType = "string";
this.outputType = "string";
this.args = [];
this.checks = new magicObject([
this.checks = new magicObject(/*[
{
match: "^\\s*(([0-9]{1,3}\\.){3}[0-9]{1,3}|([0-9a-f]{4}:){7}[0-9a-f]{4})\\s*$",
flags: "i",
args: [],
}
],
],*/null,
[
{
match: "^\\s*(([0-9]{1,3}\\[\\.\\]){3}[0-9]{1,3}|([0-9a-f]{4}\\[\\:\\]){7}[0-9a-f]{4})\\s*$",