feat(ci): subdomains on the root no underscores

This commit is contained in:
William Harrison
2025-01-10 20:43:05 +08:00
parent 4d91ca3c62
commit 4e04f769f2
9 changed files with 21 additions and 57 deletions
@@ -1,9 +0,0 @@
{
"owner": {
"username": "0v90",
"discord": "651519394673065989"
},
"record": {
"TXT": "9e58408bb4a7267e5a81669f75cfb3"
}
}
@@ -1,9 +0,0 @@
{
"owner": {
"username": "abiapp789",
"email": "abiapp2024@gmail.com"
},
"record": {
"TXT": "5bcd2d69c4cca15abd91d504a5b72a"
}
}
@@ -1,12 +0,0 @@
{
"description": "This website is my personal portfollo XD (let it on rq)",
"repo": "https://github.com/akk1to/akk1to.github.io",
"owner": {
"username": "akk1to",
"email": "akk1to.dev@gmail.com",
"discord": "727497287777124414"
},
"record": {
"TXT": ["b7205350c0f56235a5eebee2fd1993"]
}
}
@@ -1,8 +0,0 @@
{
"owner": {
"username": "akzana"
},
"record": {
"TXT": ["a9e7df1f4744431d00299a1ca92510"]
}
}
@@ -1,9 +0,0 @@
{
"owner": {
"username": "Fluffythebunny",
"email": "puglsytt@gmail.com"
},
"record": {
"TXT": "beb68ebc988463b8b1753c41c14f9e"
}
}
@@ -1,9 +0,0 @@
{
"owner": {
"username": "Rouf0x",
"email": "Gabrielruf.fr@gmail.com"
},
"record": {
"TXT": "f01cd0a4cbac68efe6b87568776ad9"
}
}
+1 -1
View File
@@ -4,6 +4,6 @@
"email": "admin@is-a.dev"
},
"record": {
"TXT": ["https://github.com/publicsuffix/list/pull/2225"]
"TXT": "https://github.com/publicsuffix/list/pull/2225"
}
}
+14
View File
@@ -127,3 +127,17 @@ t("Reserved domains file should be valid", (t) => {
t.pass();
});
const exceptedDomains = require("../util/excepted-domains.json");
t("Subdomains on the root should not start with an underscore", (t) => {
for (const file of files) {
const subdomain = file.replace(/\.json$/, "");
if (subdomain.split(".").length === 1 && !exceptedDomains.includes(subdomain)) {
t.true(subdomain[0] !== "_", `${file}: Root subdomains should not start with an underscore`);
}
}
t.pass();
})
+6
View File
@@ -0,0 +1,6 @@
[
"_discord",
"_psl",
"_gh-is-a-dev-o",
"_github-pages-challenge-is-a-dev"
]