chore: fixes import issue

This commit is contained in:
Akshay Nair committed 2023-09-17 22:02:19 +05:30
1 parent 0fd1663c0c
commit bea296258e
1 file changed
+1 -3
+1 -3
View File
@@ -2,9 +2,7 @@ const R = require('ramda');
const { VALID_RECORD_TYPES } = require('./constants');
const { or, and, validate, between, testRegex, withLengthEq, withLengthGte } = require('./helpers');
const INVALID_NAMES = require('./invalid-domains.json');
const _ipRegex = require('ip-regex');
console.log(Object.keys(_ipRegex ?? {}), Object.keys(_ipRegex.default ?? {}))
const ipRegex = _ipRegex || _ipRegex.default
const { default: ipRegex } = require('ip-regex');
const isValidURL = and([R.is(String), testRegex(/^https?:\/\//ig)]);