Issue Type: Improvement Improvement
Affects Versions: 2.2.8
Assignee: Unassigned
Components: field, validation
Created: 25/Nov/14 12:12 AM
Description:

The reg exp used by the form module for email validation is:

(^$|^\S+@\S+$)

This could be improved.


Something like:

[-0-9a-zA-Z.+_]+@[-0-9a-zA-Z.+_]+\.[a-zA-Z]{2,4}

Source: http://blog.trojanhunter.com/2012/09/26/the-best-regex-to-validate-an-email-address/

Or the same _expression_ used in our ui form module:

^([a-zA-Z0-9_\\.\\-+])+@(([a-zA-Z0-9-])+\\.)+([a-zA-Z0-9]{2,4})+$

Found in: com.vaadin.data.validator.EmailValidator

Project: Magnolia Form Module
Priority: Minor Minor
Reporter: Richard Gange
Security Level: Public
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



----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to