mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-08-06 00:23:16 +00:00
chore(ci): allow subdomains starting with underscores to have non-usable records
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user