mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-13 00:14:42 +00:00
Merge pull request #50171 from is-a-dev/roman/test-not-allow-is-a-dev
chore: add tests to block "is-a-dev" in subdomain names
This commit is contained in:
2 files changed
+1
-11
No files matched your search
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "trantienhunggg",
|
||||
"email": "trantienhung21122004@gmail.com"
|
||||
},
|
||||
"records": {
|
||||
"A": [
|
||||
"216.198.79.1"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -116,6 +116,7 @@ async function validateFileName(t, file) {
|
||||
|
||||
const rootSubdomain = subdomain.split(".").pop();
|
||||
t.false(rootSubdomain.startsWith("_"), `${file}: Root subdomains should not start with an underscore`);
|
||||
t.false(rootSubdomain.includes("is-a-dev"), `${file}: Root subdomains should not contain is-a-dev`);
|
||||
}
|
||||
|
||||
async function processFile(file, t) {
|
||||
|
||||
Reference in new issue
Block a user