[
https://issues.apache.org/jira/browse/BVAL-117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matt Benson updated BVAL-117:
-----------------------------
Fix Version/s: 1.1.2
> 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
> Fix For: 1.1.2
>
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)