Skip to content

Commit

Permalink
AAAA
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewstech committed Feb 25, 2024
1 parent e2d06ae commit 59e12ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,9 @@ async function RegisterDomain(subdomain, type, username, email, apikey, recordSt
case 'URL':
regexPattern = /^(https?:\/\/)?(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(\/[a-zA-Z0-9-_.~:/?#[\]@!$&'()*+,;=%]*)?$/;
break;
case 'AAAA':
regexPattern = /^[a-fA-F0-9]{1,4}(:[a-fA-F0-9]{1,4}){7}$/;
break;
default:
return { error: 'Invalid record type.' };
}
Expand Down

0 comments on commit 59e12ae

Please sign in to comment.