bval-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Benson (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (BVAL-117) EMailValidationUtils matches not at circumflex
Date Thu, 20 Oct 2016 22:47:58 GMT

     [ https://issues.apache.org/jira/browse/BVAL-117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Matt Benson resolved BVAL-117.
------------------------------
    Resolution: Fixed

Committed revision 1765901.

> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message