Ariel Küchler created BVAL-117:
----------------------------------
Summary: EMailValidationUtils matches not at circumflex
Key: BVAL-117
URL: https://issues.apache.org/jira/browse/BVAL-117
Project: BVal
Issue Type: Bug
Components: jsr303
Affects Versions: 0.5
Reporter: Ariel Küchler
Priority: Minor
The class _EMailValidationUtils_ contains the Regex:
{code:java}
private static String ATOM =
"[^\\x00-\\x1F^\\(^\\)^\\<^\\>^\\@^\\,^\\;^\\:^\\\\^\\\"^\\.^\\[^\\]^\\s]";
{code}
It looks as if each part of the character class is negate with the circumflex.
The Javadoc of the
[Pattern|http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html]
class describe that one circumflex ist enough at the beginning.
Every character in the character class is negate incl. the circumflex. So a
email address with circumflex is validated to false.
--
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