mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-14 12:16:50 +00:00
fix ci
This commit is contained in:
1 parent
3f1d17eb90
commit
a03e15fc30
3 files changed
+3
-5
No files matched your search
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
"email": "admin@is-a.dev"
|
"email": "admin@is-a.dev"
|
||||||
},
|
},
|
||||||
"record": {
|
"record": {
|
||||||
"CNAME": "is-a.dev"
|
"CNAME": "is-a-dev.github.io"
|
||||||
},
|
},
|
||||||
"proxied": true
|
"proxied": true
|
||||||
}
|
}
|
||||||
+1
-1
@@ -4,6 +4,6 @@
|
|||||||
"email": "admin@is-a.dev"
|
"email": "admin@is-a.dev"
|
||||||
},
|
},
|
||||||
"record": {
|
"record": {
|
||||||
"CNAME": "is-a.dev"
|
"CNAME": "is-a-dev.github.io"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -140,9 +140,7 @@ function validateRecordValues(t, data, file) {
|
|||||||
if (key === "CNAME") {
|
if (key === "CNAME") {
|
||||||
t.true(isValidHostname(value), `${file}: Invalid hostname for ${key}`);
|
t.true(isValidHostname(value), `${file}: Invalid hostname for ${key}`);
|
||||||
t.true(value !== `${subdomain}.is-a.dev`, `${file}: ${key} cannot point to itself`);
|
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") {
|
} else if (key === "URL") {
|
||||||
t.true(
|
t.true(
|
||||||
value.startsWith("http://") || value.startsWith("https://"),
|
value.startsWith("http://") || value.startsWith("https://"),
|
||||||
|
|||||||
Reference in new issue
Block a user