update to allow single _ before @ in email login validation
Showing
1 changed file
with
2 additions
and
1 deletions
@@ -8,7 +8,8 @@ var $ = require('jquery'); | @@ -8,7 +8,8 @@ var $ = require('jquery'); | ||
8 | var trim = $.trim; | 8 | var trim = $.trim; |
9 | 9 | ||
10 | //邮箱验证规则 | 10 | //邮箱验证规则 |
11 | -var emailRegx = /^([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/; | 11 | +var emailRegx = |
12 | +/^([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+[_|\_|\.|-]?@([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/; | ||
12 | 13 | ||
13 | //手机号码验证规则 | 14 | //手机号码验证规则 |
14 | var phoneRegx = { | 15 | var phoneRegx = { |
-
Please register or login to post a comment