fix: 修复"微信"多余的"+"

This commit is contained in:
宁宁 2019-07-11 14:45:40 +08:00
parent cfe793b02c
commit 46b317f8c6
2 changed files with 3 additions and 3 deletions

View File

@ -219,7 +219,7 @@
## 微信号6至20位以字母开头字母数字减号下划线 ## 微信号6至20位以字母开头字母数字减号下划线
```javascript ```javascript
/^[a-zA-Z]([-_a-zA-Z0-9]{5,19})+$/ /^[a-zA-Z][-_a-zA-Z0-9]{5,19}$/
``` ```
## 中国邮政编码 ## 中国邮政编码

View File

@ -108,7 +108,7 @@ module.exports = [
}, },
{ {
title: 'email地址', 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' example: '如: 90203918@qq.com、nbilly@126.com'
}, },
{ {
@ -219,7 +219,7 @@ module.exports = [
}, },
{ {
title: '微信号6至20位以字母开头字母数字减号下划线', 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' example: '如: github666、kd_-666'
}, },