Explorar o código

固定电话取消区号-固定电话格式

user5 %!s(int64=3) %!d(string=hai) anos
pai
achega
eb10d83a86
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main/webapp/webpage/include/head.jsp

+ 1 - 1
src/main/webapp/webpage/include/head.jsp

@@ -150,7 +150,7 @@
 
     jQuery.validator.addMethod("isTel", function(value, element) {
         var length = value.length;
-        var phone = /(^(\d{3,4}-)?\d{6,8}$)|(^(\d{3,4}-)?\d{6,8}(-\d{1,5})?$)|(\d{6,11})/;
+        var phone = /(^(\d{3,4}-)?\d{6,8}$)|(^(\d{3,4}-)?\d{6,8}(-\d{1,5})?$)|(\d{6,20})/;
         return this.optional(element) || (phone.test(value));
     }, "请填写正确的固定电话");