issue 2010 modified the regular expression of email. (add + . ~)

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11004 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2012-08-08 13:20:08 +00:00
parent 76a54f7077
commit 75a5398930
5 changed files with 74 additions and 191 deletions

View file

@ -1706,7 +1706,7 @@ var Validator = xe.createApp('Validator', {
init : function() {
// {{{ add filters
// email
var regEmail = /^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/;
var regEmail = /^[\w-]+((?:\.|\+|\~)[\w-]+)*@[\w-]+(\.[\w-]+)+$/;
this.cast('ADD_RULE', ['email', regEmail]);
this.cast('ADD_RULE', ['email_address', regEmail]);