Browse Source

邮箱正则表达式,支持更多的邮箱格式

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@1012 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
suntg 11 years ago
parent
commit
f5de625919
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/webapp/resources/tpl/register/step1.html

+ 1 - 1
src/main/webapp/resources/tpl/register/step1.html

@@ -116,7 +116,7 @@
 		    	<label for="enAdminEmail" class="col-md-3 col-sm-4 control-label">管理员邮箱:</label>
 			    <div class="col-md-5 col-sm-6">
 			      	<input required ng-model="enterprise.enAdminEmail" type="email" class="form-control" id="enAdminEmail" name="enAdminEmail" 
-			      		ng-pattern="/^(\w)+(\.\w+)*@(\w)+((\.\w+)+)$/" placeholder="请输入系统管理员邮箱地址">
+			      		ng-pattern="/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/" placeholder="请输入系统管理员邮箱地址">
 			    </div>
 			    <div class="col-md-4 col-sm-offset-4 col-md-offset-0">
 			    	<span ng-show="!myForm.enAdminEmail.$invalid" class="text-success"><span class="glyphicon glyphicon-ok-circle"></span>恭喜您,邮箱可用</span>