diff options
Diffstat (limited to 'node_modules/is-cidr/index.js')
-rw-r--r-- | node_modules/is-cidr/index.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/node_modules/is-cidr/index.js b/node_modules/is-cidr/index.js new file mode 100644 index 000000000..b5a502643 --- /dev/null +++ b/node_modules/is-cidr/index.js @@ -0,0 +1,6 @@ +"use strict"; +const cidrRegex = require("cidr-regex"); + +const isCidr = module.exports = string => cidrRegex({exact: true}).test(string); +isCidr.v4 = string => cidrRegex.v4({exact: true}).test(string); +isCidr.v6 = string => cidrRegex.v6({exact: true}).test(string); |