mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-15 00:17:35 +00:00
Merge branch 'main' into main
This commit is contained in:
5 files changed
+11
-22
No files matched your search
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"owner": {
|
|
||||||
"username": "Yunexiz",
|
|
||||||
"discord": "1040303561847881729"
|
|
||||||
},
|
|
||||||
"record": {
|
|
||||||
"URL": "https://y.is-a.dev"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"owner": {
|
|
||||||
"username": "rdaphq",
|
|
||||||
"email": "rdapshii@gmail.com"
|
|
||||||
},
|
|
||||||
"record": {
|
|
||||||
"A": ["156.67.73.46"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+2
-2
@@ -30,7 +30,7 @@ const optionalRedirectConfigFields = {
|
|||||||
const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
|
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 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.json");
|
const excludedDomains = require("../util/excluded.json");
|
||||||
const reservedDomains = require("../util/reserved.json");
|
const reservedDomains = require("../util/reserved.json");
|
||||||
const domainsPath = path.resolve("domains");
|
const domainsPath = path.resolve("domains");
|
||||||
const files = fs.readdirSync(domainsPath);
|
const files = fs.readdirSync(domainsPath);
|
||||||
@@ -113,7 +113,7 @@ async function validateFileName(t, file) {
|
|||||||
|
|
||||||
const rootSubdomain = subdomain.split(".").pop();
|
const rootSubdomain = subdomain.split(".").pop();
|
||||||
|
|
||||||
if (!exceptedDomains.includes(rootSubdomain)) {
|
if (!excludedDomains.includes(rootSubdomain)) {
|
||||||
t.false(rootSubdomain.startsWith("_"), `${file}: Root subdomains should not start with an underscore`);
|
t.false(rootSubdomain.startsWith("_"), `${file}: Root subdomains should not start with an underscore`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File renamed without changes.
+9
-2
@@ -3,11 +3,14 @@
|
|||||||
"about",
|
"about",
|
||||||
"account",
|
"account",
|
||||||
"accounts",
|
"accounts",
|
||||||
|
"ad",
|
||||||
"admin",
|
"admin",
|
||||||
|
"ads",
|
||||||
"api",
|
"api",
|
||||||
"apis",
|
"apis",
|
||||||
"app",
|
"app",
|
||||||
"apps",
|
"apps",
|
||||||
|
"asset",
|
||||||
"assets",
|
"assets",
|
||||||
"auth",
|
"auth",
|
||||||
"authentication",
|
"authentication",
|
||||||
@@ -15,8 +18,6 @@
|
|||||||
"authorise",
|
"authorise",
|
||||||
"authorization",
|
"authorization",
|
||||||
"authorize",
|
"authorize",
|
||||||
"ad",
|
|
||||||
"ads",
|
|
||||||
"billing",
|
"billing",
|
||||||
"blog",
|
"blog",
|
||||||
"board",
|
"board",
|
||||||
@@ -37,6 +38,8 @@
|
|||||||
"documentation",
|
"documentation",
|
||||||
"domain",
|
"domain",
|
||||||
"email",
|
"email",
|
||||||
|
"event",
|
||||||
|
"events",
|
||||||
"example",
|
"example",
|
||||||
"feedback",
|
"feedback",
|
||||||
"file",
|
"file",
|
||||||
@@ -98,6 +101,8 @@
|
|||||||
"pay",
|
"pay",
|
||||||
"payment",
|
"payment",
|
||||||
"payments",
|
"payments",
|
||||||
|
"poll",
|
||||||
|
"polls",
|
||||||
"portal",
|
"portal",
|
||||||
"postmaster",
|
"postmaster",
|
||||||
"preview",
|
"preview",
|
||||||
@@ -105,6 +110,7 @@
|
|||||||
"prod",
|
"prod",
|
||||||
"production",
|
"production",
|
||||||
"r",
|
"r",
|
||||||
|
"rdap",
|
||||||
"redirect",
|
"redirect",
|
||||||
"register",
|
"register",
|
||||||
"registrar",
|
"registrar",
|
||||||
@@ -116,6 +122,7 @@
|
|||||||
"service",
|
"service",
|
||||||
"services",
|
"services",
|
||||||
"shop",
|
"shop",
|
||||||
|
"sso",
|
||||||
"staff",
|
"staff",
|
||||||
"staging",
|
"staging",
|
||||||
"static",
|
"static",
|
||||||
|
|||||||
Reference in new issue
Block a user