mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
Fix e-mail address validation for t.co, ucla.college and example.xn--p1ai
These are all valid domain names that can host e-mail addresses.
This commit is contained in:
@@ -52,7 +52,7 @@ public final class ValidationUtil
|
|||||||
|
|
||||||
/** Field description */
|
/** Field description */
|
||||||
private static final String REGEX_MAIL =
|
private static final String REGEX_MAIL =
|
||||||
"^[A-z0-9][\\w.-]*@[A-z0-9][\\w\\-\\.]+\\.[A-z0-9]{2,6}$";
|
"^[A-z0-9][\\w.-]*@[A-z0-9][\\w\\-\\.]*\\.[A-z0-9][A-z0-9-]+$";
|
||||||
|
|
||||||
/** Field description */
|
/** Field description */
|
||||||
private static final String REGEX_NAME =
|
private static final String REGEX_NAME =
|
||||||
|
|||||||
Reference in New Issue
Block a user