Update validations.js

This commit is contained in:
MaskDuck authored and GitHub committed 2024-09-08 13:04:38 +07:00
1 parent 85e66b6686
commit 3ae599694f
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-_]+)\.)+(([a-z0-9-]+)\.)+[a-z]+$/gi),
testRegex(/^(([a-z0-9-_]+)\.)*(([a-z0-9-]+)\.)+[a-z]+$/gi),
]);
const validateCnameRecord = (type) =>