mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
fix: 修复"微信"多余的"+"
This commit is contained in:
parent
cfe793b02c
commit
46b317f8c6
@ -219,7 +219,7 @@
|
||||
|
||||
## 微信号,6至20位,以字母开头,字母,数字,减号,下划线
|
||||
```javascript
|
||||
/^[a-zA-Z]([-_a-zA-Z0-9]{5,19})+$/
|
||||
/^[a-zA-Z][-_a-zA-Z0-9]{5,19}$/
|
||||
```
|
||||
|
||||
## 中国邮政编码
|
||||
|
@ -108,7 +108,7 @@ module.exports = [
|
||||
},
|
||||
{
|
||||
title: 'email地址',
|
||||
rule: /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,
|
||||
rule: /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,
|
||||
example: '如: 90203918@qq.com、nbilly@126.com'
|
||||
},
|
||||
{
|
||||
@ -219,7 +219,7 @@ module.exports = [
|
||||
},
|
||||
{
|
||||
title: '微信号,6至20位,以字母开头,字母,数字,减号,下划线',
|
||||
rule: /^[a-zA-Z]([-_a-zA-Z0-9]{5,19})+$/,
|
||||
rule: /^[a-zA-Z][-_a-zA-Z0-9]{5,19}$/,
|
||||
example: '如: github666、kd_-666'
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user