mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
perf: 座机号支持分机号(#144)
This commit is contained in:
parent
d06315c9ae
commit
d13ce0827b
@ -194,17 +194,11 @@ module.exports = [{
|
||||
rule: /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
|
||||
examples: ['90203918@qq.com', 'nbilly@126.com']
|
||||
},
|
||||
|
||||
{
|
||||
title: '座机(tel phone)电话(国内),如: 0341-86091234',
|
||||
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']
|
||||
rule: /^(?:(?:\d{3}-)?\d{8}|^(?:\d{4}-)?\d{7,8})(?:-\d+)?$/,
|
||||
examples: ['0936-4211235', '89076543','010-12345678-1234']
|
||||
},
|
||||
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user