support domain key records

This commit is contained in:
William Harrison
2024-07-01 14:42:04 +08:00
parent 7f98273fe2
commit 6be3059bbe
3 changed files with 5 additions and 0 deletions
+3
View File
@@ -68,6 +68,7 @@ describe('validateDomainData', () => {
{ ...defaultDomain, name: '_acme-challenge' },
{ ...defaultDomain, name: '_dmarc' },
{ ...defaultDomain, name: '_gh-is-a-dev' },
{ ...defaultDomain, name: '_domainkey' },
];
const validCases = [
@@ -104,6 +105,8 @@ describe('validateDomainData', () => {
{ ...defaultDomain, name: '_gh-phenax.akshay' },
{ ...defaultDomain, name: '_gh-hello01-ga' },
{ ...defaultDomain, name: '_gh-hello01_ga' },
{ ...defaultDomain, name: '_domainkey.subdomain' },
{ ...defaultDomain, name: 'mx._domainkey.subdomain' },
];
it('should return false for invalid data', () => {
+1
View File
@@ -2,6 +2,7 @@
"_acme-challenge",
"_discord",
"_dmarc",
"_domainkey",
"_gh-is-a-dev",
"_github-challenge-is-a-dev",
"_github-pages-challenge-is-a-dev",
+1
View File
@@ -42,6 +42,7 @@ const extraSupportedNames = [
R.equals('_gitlab-pages-verification-code'),
R.equals('_acme-challenge'),
R.equals('_dmarc'),
R.equals('_domainkey'),
testRegex(/^_gh-[a-z0-9-_]+$/i), // Exception for the new github org verification records
]