mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-11-11 04:45:15 +00:00
Relax the email validation in frontend
This commit is contained in:
@@ -44,7 +44,7 @@ const validateEmail = () => {
|
||||
if (!value.length) {
|
||||
return intl.formatMessage({ id: "error.required" });
|
||||
}
|
||||
if (!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(value)) {
|
||||
if (!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+$/i.test(value)) {
|
||||
return intl.formatMessage({ id: "error.invalid-email" });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user