shorten util JSON file names

This commit is contained in:
William Harrison committed 2025-01-13 18:02:35 +08:00
1 parent 83b803ed0c
commit 74323a6785
5 files changed
+124 -124

No files matched your search

+3 -3
View File
@@ -30,8 +30,8 @@ const optionalRedirectConfigFields = {
const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
const hostnameRegex = /^(?=.{1,253}$)(?:(?:[_a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)\.)+[a-zA-Z]{2,63}$/;
const exceptedDomains = require("../util/excepted-domains.json");
const reservedDomains = require("../util/reserved-domains.json");
const exceptedDomains = require("../util/excepted.json");
const reservedDomains = require("../util/reserved.json");
const domainsPath = path.resolve("domains");
const files = fs.readdirSync(domainsPath);
@@ -52,7 +52,7 @@ function expandReservedDomains(reserved) {
}
expandedList.splice(expandedList.indexOf(item), 1);
} else {
throw new Error(`[util/reserved-domains.json] Invalid range [${start}-${end}] in "${item}"`);
throw new Error(`[util/reserved.json] Invalid range [${start}-${end}] in "${item}"`);
}
}
});
+1 -1
View File
@@ -5,7 +5,7 @@ const path = require("path");
const domainsPath = path.resolve("domains");
const files = fs.readdirSync(domainsPath).filter((file) => file.endsWith(".json"));
const bypassedUsernames = require("../util/bypassed-usernames.json").map((username) => username.toLowerCase());
const bypassedUsernames = require("../util/bypassed.json").map((username) => username.toLowerCase());
function getDomainData(subdomain) {
try {
File renamed without changes.
File renamed without changes.
+120 -120
View File
@@ -1,120 +1,120 @@
[
"account",
"accounts",
"admin",
"administrator",
"alert",
"alerts",
"api",
"auth",
"authentication",
"authorisation",
"authorise",
"authorization",
"authorize",
"aux",
"billing",
"blog",
"calendar",
"cart",
"catalog",
"checkout",
"co",
"com",
"com[1-9]",
"con",
"confirm",
"confirmation",
"dashboard",
"default",
"dns",
"doc",
"documentation",
"email",
"error",
"errors",
"event",
"events",
"example",
"feedback",
"finance",
"forgot",
"forgot-password",
"gtld",
"guest",
"help",
"helpdesk",
"hostmaster",
"info",
"infos",
"login",
"logout",
"lpt[1-9]",
"m",
"mail",
"maintainer",
"maintainers",
"marketing",
"media",
"mobile",
"net",
"news",
"noc",
"notification",
"notifications",
"notify",
"ns",
"ns[1-99]",
"nul",
"oauth",
"official",
"operations",
"ops",
"org",
"organisation",
"pay",
"payment",
"payments",
"portal",
"postmaster",
"recovery",
"redirect",
"registrar",
"registry",
"reset",
"reset-password",
"root",
"sales",
"schedule",
"secure",
"security",
"service",
"services",
"session",
"sessions",
"shop",
"signin",
"signout",
"signup",
"staff",
"store",
"superuser",
"support",
"sys",
"system",
"teams",
"test",
"test[1-9999]",
"tld",
"token",
"tokens",
"url",
"url[1-9999]",
"user",
"users",
"webmaster",
"whois",
"www[1-99]",
"wwww",
"your-domain-name"
]
[
"account",
"accounts",
"admin",
"administrator",
"alert",
"alerts",
"api",
"auth",
"authentication",
"authorisation",
"authorise",
"authorization",
"authorize",
"aux",
"billing",
"blog",
"calendar",
"cart",
"catalog",
"checkout",
"co",
"com",
"com[1-9]",
"con",
"confirm",
"confirmation",
"dashboard",
"default",
"dns",
"doc",
"documentation",
"email",
"error",
"errors",
"event",
"events",
"example",
"feedback",
"finance",
"forgot",
"forgot-password",
"gtld",
"guest",
"help",
"helpdesk",
"hostmaster",
"info",
"infos",
"login",
"logout",
"lpt[1-9]",
"m",
"mail",
"maintainer",
"maintainers",
"marketing",
"media",
"mobile",
"net",
"news",
"noc",
"notification",
"notifications",
"notify",
"ns",
"ns[1-99]",
"nul",
"oauth",
"official",
"operations",
"ops",
"org",
"organisation",
"pay",
"payment",
"payments",
"portal",
"postmaster",
"recovery",
"redirect",
"registrar",
"registry",
"reset",
"reset-password",
"root",
"sales",
"schedule",
"secure",
"security",
"service",
"services",
"session",
"sessions",
"shop",
"signin",
"signout",
"signup",
"staff",
"store",
"superuser",
"support",
"sys",
"system",
"teams",
"test",
"test[1-9999]",
"tld",
"token",
"tokens",
"url",
"url[1-9999]",
"user",
"users",
"webmaster",
"whois",
"www[1-99]",
"wwww",
"your-domain-name"
]