Skip to content

Commit

Permalink
Updating maximum to 15 strings
Browse files Browse the repository at this point in the history
  • Loading branch information
rvbgnu committed Oct 17, 2014
1 parent 2f63872 commit d3dfa17
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libraries/joomla/form/rules/email.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class JFormRuleEmail extends JFormRule
* @var string
* @since 11.1
*/
protected $regex = '^[\w.-]+(\+[\w.-]+)*@\w+[\w.-]*?\.\w{2,8}$';
protected $regex = '^[\w.-]+(\+[\w.-]+)*@\w+[\w.-]*?\.\w{2,15}$';

/**
* Method to test the email address and optionally check for uniqueness.
Expand Down
2 changes: 1 addition & 1 deletion media/system/js/validate-uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ var JFormValidator = new Class({

this.setHandler('email',
function (value) {
regex=/^[a-zA-Z0-9._-]+(\+[a-zA-Z0-9._-]+)*@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,8}$/;
regex=/^[a-zA-Z0-9._-]+(\+[a-zA-Z0-9._-]+)*@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,15}$/;
return regex.test(value);
}
);
Expand Down
2 changes: 1 addition & 1 deletion media/system/js/validate.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d3dfa17

Please sign in to comment.