chore: temp debug commit

This commit is contained in:
Akshay Nair
2023-09-17 22:00:19 +05:30
parent ddc1b6c8db
commit 0fd1663c0c
+3 -1
View File
@@ -2,7 +2,9 @@ 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');
const _ipRegex = require('ip-regex');
console.log(Object.keys(_ipRegex ?? {}), Object.keys(_ipRegex.default ?? {}))
const ipRegex = _ipRegex || _ipRegex.default
const isValidURL = and([R.is(String), testRegex(/^https?:\/\//ig)]);