cidr-regex
Advanced tools
Comparing version 2.0.9 to 2.0.10
@@ -8,7 +8,7 @@ "use strict"; | ||
const ip = module.exports = opts => opts && opts.exact ? | ||
const cidr = module.exports = opts => opts && opts.exact ? | ||
new RegExp(`(?:^${v4}$)|(?:^${v6}$)`) : | ||
new RegExp(`(?:${v4})|(?:${v6})`, "g"); | ||
ip.v4 = opts => opts && opts.exact ? new RegExp(`^${v4}$`) : new RegExp(v4, "g"); | ||
ip.v6 = opts => opts && opts.exact ? new RegExp(`^${v6}$`) : new RegExp(v6, "g"); | ||
cidr.v4 = opts => opts && opts.exact ? new RegExp(`^${v4}$`) : new RegExp(v4, "g"); | ||
cidr.v6 = opts => opts && opts.exact ? new RegExp(`^${v6}$`) : new RegExp(v6, "g"); |
{ | ||
"name": "cidr-regex", | ||
"version": "2.0.9", | ||
"version": "2.0.10", | ||
"description": "Regular expression for matching IP addresses in CIDR notation", | ||
@@ -34,7 +34,7 @@ "author": "silverwind <me@silverwind.io>", | ||
"devDependencies": { | ||
"ava": "^0.25.0", | ||
"eslint": "^4.19.1", | ||
"eslint-config-silverwind": "^1.0.42", | ||
"updates": "^3.0.0" | ||
"eslint": "^5.6.0", | ||
"eslint-config-silverwind": "^2.0.9", | ||
"updates": "^4.3.0", | ||
"ver": "^2.0.1" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4367