Skip to content

Commit 7f0cce9

Browse files
committed
Relax the email validation in frontend
1 parent 311d6a1 commit 7f0cce9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/modules/Validations.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const validateEmail = () => {
4444
if (!value.length) {
4545
return intl.formatMessage({ id: "error.required" });
4646
}
47-
if (!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(value)) {
47+
if (!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+$/i.test(value)) {
4848
return intl.formatMessage({ id: "error.invalid-email" });
4949
}
5050
};

0 commit comments

Comments
 (0)