mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-15 20:15:58 +00:00
chore: temp debug commit
This commit is contained in:
1 file changed
+3
-1
@@ -2,7 +2,9 @@ const R = require('ramda');
|
|||||||
const { VALID_RECORD_TYPES } = require('./constants');
|
const { VALID_RECORD_TYPES } = require('./constants');
|
||||||
const { or, and, validate, between, testRegex, withLengthEq, withLengthGte } = require('./helpers');
|
const { or, and, validate, between, testRegex, withLengthEq, withLengthGte } = require('./helpers');
|
||||||
const INVALID_NAMES = require('./invalid-domains.json');
|
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)]);
|
const isValidURL = and([R.is(String), testRegex(/^https?:\/\//ig)]);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user