Merge pull request #95 from 2017noobman/develop

fix: 座机支持4位区号,8位电话号
This commit is contained in:
any86 2020-05-12 10:51:04 +08:00 committed by GitHub
commit e19d9b96e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 85 additions and 85 deletions

View File

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

View File

@ -191,7 +191,7 @@ module.exports = [{
},
{
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']
},
{