From b84683beaf9dfb759f3948cccdcf1983421df20d Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 31 Aug 2026 23:45:24 +0100 Subject: [PATCH 1/3] chore: add tests to block "s-a-dev" in subdomain names --- tests/domains.test.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/domains.test.js b/tests/domains.test.js index d0a778bbc4..6ffeddf447 100644 --- a/tests/domains.test.js +++ b/tests/domains.test.js @@ -102,3 +102,15 @@ t("Users are limited to one single character subdomain", (t) => { t.pass(); }); + +t("Subdomain names should not contain 'is-a-dev'", (t) => { + files.forEach((file) => { + const subdomain = file.replace(/\.json$/, ""); + const baseName = subdomain.split(".").pop(); + + t.false( + baseName.toLowerCase().includes("is-a-dev"), + `${file}: Subdomain name cannot contain 'is-a-dev'` + ); + }); +}); From acd63b20628dd2699ccfa503abbf19f44f88f411 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 31 Aug 2026 23:47:35 +0100 Subject: [PATCH 2/3] delete invalid file --- domains/trantienhunggg-is-a-dev.json | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 domains/trantienhunggg-is-a-dev.json diff --git a/domains/trantienhunggg-is-a-dev.json b/domains/trantienhunggg-is-a-dev.json deleted file mode 100644 index 129cf035a7..0000000000 --- a/domains/trantienhunggg-is-a-dev.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "owner": { - "username": "trantienhunggg", - "email": "trantienhung21122004@gmail.com" - }, - "records": { - "A": [ - "216.198.79.1" - ] - } -} From 64e598111c8ff439a0e1df640240650287afa080 Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 1 Sep 2026 02:26:27 +0100 Subject: [PATCH 3/3] move test --- tests/domains.test.js | 12 ------------ tests/json.test.js | 1 + 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/tests/domains.test.js b/tests/domains.test.js index 6ffeddf447..d0a778bbc4 100644 --- a/tests/domains.test.js +++ b/tests/domains.test.js @@ -102,15 +102,3 @@ t("Users are limited to one single character subdomain", (t) => { t.pass(); }); - -t("Subdomain names should not contain 'is-a-dev'", (t) => { - files.forEach((file) => { - const subdomain = file.replace(/\.json$/, ""); - const baseName = subdomain.split(".").pop(); - - t.false( - baseName.toLowerCase().includes("is-a-dev"), - `${file}: Subdomain name cannot contain 'is-a-dev'` - ); - }); -}); diff --git a/tests/json.test.js b/tests/json.test.js index e3d79e801e..b59fd342a8 100644 --- a/tests/json.test.js +++ b/tests/json.test.js @@ -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) {