diff options
Diffstat (limited to 'node_modules/is-cidr/lib/index.js')
-rw-r--r-- | node_modules/is-cidr/lib/index.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/node_modules/is-cidr/lib/index.js b/node_modules/is-cidr/lib/index.js new file mode 100644 index 000000000..a36706049 --- /dev/null +++ b/node_modules/is-cidr/lib/index.js @@ -0,0 +1,18 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.isCidrV6 = exports.isCidrV4 = undefined; + +var _cidrRegex = require('cidr-regex'); + +var isCidrV4 = exports.isCidrV4 = function isCidrV4(str) { + return _cidrRegex.cidrv4.test(str); +}; + +var isCidrV6 = exports.isCidrV6 = function isCidrV6(str) { + return _cidrRegex.cidrv6.test(str); +}; + +exports.default = isCidrV4;
\ No newline at end of file |