diff --git a/client/src/store/SignUpForm.tsx b/client/src/store/SignUpForm.tsx index d1d4e0df4..137176e04 100644 --- a/client/src/store/SignUpForm.tsx +++ b/client/src/store/SignUpForm.tsx @@ -57,7 +57,7 @@ const actions = { const { email, confirmEmail, phone_number, emergency_contact } = getState() const validRegex = - /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/ + /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-]{2,}$/ if (!email.match(validRegex)) { invalidFields.push("Email")