This commit is contained in:
William Harrison
2025-04-23 16:22:29 +08:00
parent 3f1d17eb90
commit a03e15fc30
3 changed files with 3 additions and 5 deletions
+1 -3
View File
@@ -140,9 +140,7 @@ function validateRecordValues(t, data, file) {
if (key === "CNAME") {
t.true(isValidHostname(value), `${file}: Invalid hostname for ${key}`);
t.true(value !== `${subdomain}.is-a.dev`, `${file}: ${key} cannot point to itself`);
if (data.owner.username.toLowerCase() !== "is-a-dev") {
t.true(value !== "is-a.dev", `${file}: ${key} cannot point to is-a.dev`);
}
t.true(value !== "is-a.dev", `${file}: ${key} cannot point to is-a.dev`);
} else if (key === "URL") {
t.true(
value.startsWith("http://") || value.startsWith("https://"),