You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org> on 2005/08/24 00:09:08 UTC
[jira] Closed: (TAPESTRY-579) E-mail validator pattern doesn't take new TLDs into account
[ http://issues.apache.org/jira/browse/TAPESTRY-579?page=all ]
Howard M. Lewis Ship closed TAPESTRY-579:
-----------------------------------------
Fix Version: 4.0
Resolution: Fixed
> E-mail validator pattern doesn't take new TLDs into account
> -----------------------------------------------------------
>
> Key: TAPESTRY-579
> URL: http://issues.apache.org/jira/browse/TAPESTRY-579
> Project: Tapestry
> Type: Bug
> Components: Framework
> Versions: 4.0
> Reporter: Filip S. Adamsen
> Assignee: Howard M. Lewis Ship
> Priority: Minor
> Fix For: 4.0
>
> The regex pattern used in the org.apache.tapestry.form.validator.Email validator doesn't allow for newer TLDs like .info, .name, and other similar TLDs.
> The solution would be to change
> static final String PATTERN = "^\\w[-._\\w]*\\w@\\w[-._\\w]*\\w\\.\\w{2,3}$";
> to
> static final String PATTERN = "^\\w[-._\\w]*\\w@\\w[-._\\w]*\\w\\.\\w{2,6}$";
> as .museum is currently the longest proposed TLD I've heard of.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org