mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-05-24 21:36:07 +00:00
Merge branch 'main' into main
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "is-a-dev",
|
||||
"email": ""
|
||||
},
|
||||
|
||||
"record": {
|
||||
"TXT": "1259c184c5"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "lightly-toasted",
|
||||
"email": "tooast@duck.com"
|
||||
},
|
||||
"record": {
|
||||
"TXT": "b92470bdf6083c1af8509ee249c02f"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"description": "Just a website for detailing the game development projects of Lua",
|
||||
"owner": {
|
||||
"username": "notxlua",
|
||||
"email": "notxlua@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "xmw2.wordpress.com"
|
||||
}
|
||||
}
|
||||
@@ -67,6 +67,7 @@ describe('validateDomainData', () => {
|
||||
{ ...defaultDomain, name: '_gitlab-pages-verification-code' },
|
||||
{ ...defaultDomain, name: '_acme-challenge' },
|
||||
{ ...defaultDomain, name: '_dmarc' },
|
||||
{ ...defaultDomain, name: '_gh-is-a-dev' },
|
||||
];
|
||||
|
||||
const validCases = [
|
||||
@@ -100,6 +101,9 @@ describe('validateDomainData', () => {
|
||||
{ ...defaultDomain, name: '_gitlab-pages-verification-code.subdomain' },
|
||||
{ ...defaultDomain, name: '_acme-challenge.subdomain' },
|
||||
{ ...defaultDomain, name: '_dmarc.subdomain' },
|
||||
{ ...defaultDomain, name: '_gh-phenax.akshay' },
|
||||
{ ...defaultDomain, name: '_gh-hello01-ga' },
|
||||
{ ...defaultDomain, name: '_gh-hello01_ga' },
|
||||
];
|
||||
|
||||
it('should return false for invalid data', () => {
|
||||
|
||||
@@ -2,9 +2,11 @@
|
||||
"_acme-challenge",
|
||||
"_discord",
|
||||
"_dmarc",
|
||||
"_gh-is-a-dev",
|
||||
"_github-challenge-is-a-dev",
|
||||
"_github-pages-challenge-is-a-dev",
|
||||
"_gitlab-pages-verification-code",
|
||||
"con",
|
||||
"help",
|
||||
"no-reply",
|
||||
"noreply",
|
||||
|
||||
@@ -42,6 +42,7 @@ const extraSupportedNames = [
|
||||
R.equals('_gitlab-pages-verification-code'),
|
||||
R.equals('_acme-challenge'),
|
||||
R.equals('_dmarc'),
|
||||
testRegex(/^_gh-[a-z0-9-_]+$/i), // Exception for the new github org verification records
|
||||
]
|
||||
|
||||
const validateDomainData = validate({
|
||||
|
||||
Reference in New Issue
Block a user