Starting to rejig it

This commit is contained in:
n1073645 2019-12-02 14:15:21 +00:00
parent 3fa3c31e31
commit 9f3b185f77
40 changed files with 131 additions and 82 deletions

View file

@ -9,6 +9,7 @@ import Utils from "../Utils.mjs";
import OperationError from "../errors/OperationError.mjs";
import {strToIpv6, ipv6ToStr, ipv4ToStr, IPV6_REGEX} from "../lib/IP.mjs";
import BigNumber from "bignumber.js";
import magicObject from "../lib/MagicObject.mjs";
/**
* Parse IPv6 address operation
@ -28,13 +29,13 @@ class ParseIPv6Address extends Operation {
this.inputType = "string";
this.outputType = "string";
this.args = [];
this.patterns = [
this.checks = new magicObject([
{
match: "^\\s*([a-f\\d]{4}:?)+\\s*$",
flags: "i",
args: []
}
];
]);
}
/**