From 82f8c2af53a0f55f0a970608053caa71bad47fd5 Mon Sep 17 00:00:00 2001 From: Jon <66625200+Kyro3400@users.noreply.github.com> Date: Sat, 23 Nov 2024 11:47:28 -0500 Subject: [PATCH] Update domains.test.js Match how is-a.dev has theirs --- tests/domains.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/domains.test.js b/tests/domains.test.js index 8cb68033..dfccdcf3 100644 --- a/tests/domains.test.js +++ b/tests/domains.test.js @@ -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