Riccardo Costa created SYNCOPE-348:
--------------------------------------
Summary: Email address validator
Key: SYNCOPE-348
URL: https://issues.apache.org/jira/browse/SYNCOPE-348
Project: Syncope
Issue Type: Improvement
Affects Versions: 1.0.6
Reporter: Riccardo Costa
Priority: Minor
Improve email validator regular expression from
private static final Pattern EMAIL_PATTERN =
Pattern.compile("^[\\w\\-]([\\.\\w])+[\\w]+@([\\w\\-]+\\.)+[A-Z]{2,4}$",
Pattern.CASE_INSENSITIVE);
to
private static final Pattern EMAIL_PATTERN =
Pattern.compile("^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$",
Pattern.CASE_INSENSITIVE);
Riccardo
http://syncope-dev.1063484.n5.nabble.com/Email-address-validator-td5713393.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira