[ 
https://issues.apache.org/jira/browse/WICKET-1320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12565434#action_12565434
 ] 

Guðmundur Bjarni Ólafsson commented on WICKET-1320:
---------------------------------------------------

A simple fix for the + symbol could be done by changing the pattern to:

"^[_A-Za-z0-9-]+([\\.+][_A-Za-z0-9-]+)[EMAIL 
PROTECTED](\\.[A-Za-z0-9-]+)*((\\.[A-Za-z]{2,}){1}$)"

where the modification is the [\\.+] part


> EmailAddressValidator is not RFC 2822 compliant
> -----------------------------------------------
>
>                 Key: WICKET-1320
>                 URL: https://issues.apache.org/jira/browse/WICKET-1320
>             Project: Wicket
>          Issue Type: Bug
>            Reporter: Guðmundur Bjarni Ólafsson
>            Priority: Minor
>
> Say that I have the address [EMAIL PROTECTED] and I sign up at a site, Gmail 
> then allows me to write my address as: [EMAIL PROTECTED], so I can easily 
> filter out any messages coming from this site. The current version of 
> EmailAddressValidator unfortunately does not allow me to do this since it 
> considers a + to be invalid. 
> It would be very nice if the validator could be RFC 2822[1] compliant.
> [1] http://tools.ietf.org/html/rfc2822

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to