fix: 座机支持4位区号,8位电话号

This commit is contained in:
2017noobman 2020-05-11 13:52:36 +08:00
parent 24e1d23e61
commit b5fb07cd10
2 changed files with 85 additions and 85 deletions

View File

@ -269,7 +269,7 @@ vscode应用商店中搜索"**any-rule**".
### 座机(tel phone)电话(国内),如: 0341-86091234 ### 座机(tel phone)电话(国内),如: 0341-86091234
```javascript ```javascript
/^\d{3}-\d{8}$|^\d{4}-\d{7}$/ /^\d{3}-\d{8}$|^\d{4}-\d{7,8}$/
``` ```
### 身份证号(1代,15位数字) ### 身份证号(1代,15位数字)

View File

@ -191,7 +191,7 @@ module.exports = [{
}, },
{ {
title: '座机(tel phone)电话(国内),如: 0341-86091234', title: '座机(tel phone)电话(国内),如: 0341-86091234',
rule: /^\d{3}-\d{8}$|^\d{4}-\d{7}$/, rule: /^\d{3}-\d{8}$|^\d{4}-\d{7,8}$/,
examples: ['0936-4211235'] examples: ['0936-4211235']
}, },
{ {