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:
Gábor Stefanik
2017-03-07 18:53:07 +00:00
parent e0d42d7c92
commit 64d57e932a

View File

@@ -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 =