Merge pull request #50171 from is-a-dev/roman/test-not-allow-is-a-dev

chore: add tests to block "is-a-dev" in subdomain names
This commit is contained in:
William Harrison authored and GitHub committed 2026-09-01 17:05:11 +08:00
commit a2c60e433e
2 files changed
+1 -11

No files matched your search

-11
View File
@@ -1,11 +0,0 @@
{
"owner": {
"username": "trantienhunggg",
"email": "trantienhung21122004@gmail.com"
},
"records": {
"A": [
"216.198.79.1"
]
}
}
+1
View File
@@ -116,6 +116,7 @@ async function validateFileName(t, file) {
const rootSubdomain = subdomain.split(".").pop();
t.false(rootSubdomain.startsWith("_"), `${file}: Root subdomains should not start with an underscore`);
t.false(rootSubdomain.includes("is-a-dev"), `${file}: Root subdomains should not contain is-a-dev`);
}
async function processFile(file, t) {