mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-19 22:15:11 +00:00
remove noreply emails
This commit is contained in:
1 parent
e115e1f30e
commit
6f5402a072
22 files changed
+26
-50
No files matched your search
+2
-11
@@ -215,8 +215,8 @@ function validateRecordValues(t, data, file) {
|
||||
`${urlMessage} must start with a slash, contain only alphanumeric characters, hyphens, underscores, periods, and slashes, and cannot end with a slash at index ${idx}`
|
||||
);
|
||||
t.true(
|
||||
customPath.length >= 2 && customPath.length <= 255,
|
||||
`${urlMessage} should be 2-255 characters long at index ${idx}`
|
||||
customPath.length >= 1 && customPath.length <= 255,
|
||||
`${urlMessage} should be 1-255 characters long at index ${idx}`
|
||||
);
|
||||
|
||||
// Validate the redirect URL
|
||||
@@ -266,15 +266,6 @@ t("All files should have valid record types", (t) => {
|
||||
`${file}: URL records cannot be combined with A, AAAA, or CNAME records`
|
||||
);
|
||||
}
|
||||
if (data.redirect_config) {
|
||||
t.true(
|
||||
recordKeys.includes("URL") || data.proxied,
|
||||
`${file}: Redirect config must be combined with a URL record or the domain must be proxied`
|
||||
);
|
||||
if (data.redirect_config.redirect_paths) {
|
||||
t.true(recordKeys.includes("URL"), `${file}: redirect_config.redirect_paths requires a URL record`);
|
||||
}
|
||||
}
|
||||
|
||||
validateRecordValues(t, data, file);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user