Update validations.js

This commit is contained in:
MaskDuck authored and GitHub committed 2024-09-08 13:28:16 +07:00
1 parent d07b34dfdf
commit 4db19fce2e
1 file changed
+1 -1
+1 -1
View File
@@ -17,7 +17,7 @@ const isValidURL = and([R.is(String), testRegex(/^https?:\/\//gi)]);
const isValidDomain = and([
R.is(String),
testRegex(/^((?:[a-z0-9-]+|_acme)\.)*(([a-z0-9-]+)\.)+[a-z]+$/gi),
testRegex(/^(([a-z0-9-_]+)\.)*(([a-z0-9-]+)\.)+[a-z]+$/gi),
]);
const validateCnameRecord = (type) =>