mirror of
https://github.com/tiennm99/open-domains.git
synced 2026-10-14 02:16:23 +00:00
Update domains.test.js
Match how is-a.dev has theirs
This commit is contained in:
1 file changed
+2
-2
@@ -13,7 +13,7 @@ t("Nested subdomains should not exist without a parent subdomain", (t) => {
|
||||
return; // Skip directories
|
||||
}
|
||||
|
||||
const subdomain = file.replace(".json", "");
|
||||
const subdomain = file.replace(/\.json$/, "");
|
||||
|
||||
if (subdomain.split(".").length > 1) {
|
||||
// Get parent domain by removing the last part (subdomain) from the full subdomain
|
||||
@@ -38,7 +38,7 @@ t("Nested subdomains should not exist if the parent subdomain has NS records", (
|
||||
return; // Skip directories
|
||||
}
|
||||
|
||||
const subdomain = file.replace(".json", "");
|
||||
const subdomain = file.replace(/\.json$/, "");
|
||||
|
||||
if (subdomain.split(".").length > 1) {
|
||||
// Get parent domain by removing the last part (subdomain) from the full subdomain
|
||||
|
||||
Reference in new issue
Block a user