diff --git a/utils/common.js b/utils/common.js index 008a27e..ed8a46c 100644 --- a/utils/common.js +++ b/utils/common.js @@ -1101,7 +1101,7 @@ let data = { */ setReg ($str, $type = 'default') { if ($type == 'tel') { - return /^[1][3,4,5,7,8,9][0-9]{9}$/.test($str); + return /^1[3-9]\d{9}$/.test($str); } if ($type == 'idcard') { return /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test($str);