chore(ci): allow subdomains starting with underscores to have non-usable records

This commit is contained in:
William Harrison
2025-04-04 14:28:51 +08:00
committed by GitHub
parent c7077c039d
commit 1b9ea978b3
+2 -1
View File
@@ -318,7 +318,8 @@ t("Root subdomains should have at least one usable record", (t) => {
const usableRecordTypes = ["A", "AAAA", "CNAME", "MX", "NS", "URL"];
files.forEach((file) => {
if (file.replace(/\.json$/, "").includes(".")) return;
const subdomain = file.replace(/\.json$/, "");
if (subdomain.includes(".") || subdomain.startsWith("_")) return;
const data = getDomainData(file);
const recordKeys = Object.keys(data.record);