mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
feat: 新增"座机(tel phone)电话(国内), 区号可选"
This commit is contained in:
parent
7ef6a8eadf
commit
f306d5fb9c
@ -199,6 +199,14 @@ module.exports = [{
|
||||
rule: /^\d{3}-\d{8}$|^\d{4}-\d{7,8}$/,
|
||||
examples: ['0936-4211235']
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
title: '座机(tel phone)电话(国内), 区号可选,如: 0341-86091234',
|
||||
rule: /^(?:\d{3}-)?\d{8}$|^(?:\d{4}-)?\d{7,8}$/,
|
||||
examples: ['0936-4211235','89076543']
|
||||
},
|
||||
|
||||
{
|
||||
title: '身份证号(1代,15位数字)',
|
||||
rule: /^[1-9]\d{7}(?:0\d|10|11|12)(?:0[1-9]|[1-2][\d]|30|31)\d{3}$/,
|
||||
|
Loading…
x
Reference in New Issue
Block a user