Skip to content

Commit

Permalink
fix: could not add 2 character domains.
Browse files Browse the repository at this point in the history
resolves #1
  • Loading branch information
towfiqi committed Dec 1, 2022
1 parent a45237b commit 5acbe18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/domains/AddDomain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const AddDomain = ({ closeModal }: AddDomainProps) => {

const addDomain = () => {
// console.log('ADD NEW DOMAIN', newDomain);
if (/^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](?:\.[a-zA-Z]{2,})+$/.test(newDomain)) {
if (/^[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9](?:\.[a-zA-Z]{2,})+$/.test(newDomain)) {
setNewDomainError(false);
// TODO: Domain Action
addMutate(newDomain);
Expand Down

0 comments on commit 5acbe18

Please sign in to comment.