mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-08-12 08:23:24 +00:00
Update validations.js
This commit is contained in:
@@ -17,7 +17,7 @@ const isValidURL = and([R.is(String), testRegex(/^https?:\/\//gi)]);
|
||||
|
||||
const isValidDomain = and([
|
||||
R.is(String),
|
||||
testRegex(/^(([a-z0-9-_]+)\.)*(([a-z0-9-]+)\.)+[a-z]+$/gi),
|
||||
testRegex(/^((?:[a-z0-9-]+|_acme)\.)*(([a-z0-9-]+)\.)+[a-z]+$/gi),
|
||||
]);
|
||||
|
||||
const validateCnameRecord = (type) =>
|
||||
|
||||
Reference in New Issue
Block a user