mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
refactor: 修改email标题体现"邮箱"2字, 方便搜索
This commit is contained in:
parent
1776f6ed10
commit
f2c06ffc51
@ -11,7 +11,7 @@ https://any86.github.io/any-rule/
|
||||
3. 输入"**zz**"可以看到正则列表.
|
||||
4. 或者**输入关键词**, 比如"手机".
|
||||
|
||||

|
||||

|
||||
|
||||
## 正则
|
||||
|
||||
@ -170,7 +170,7 @@ https://any86.github.io/any-rule/
|
||||
/^\d{4}(-)(1[0-2]|0?\d)\1([0-2]\d|\d|30|31)$/
|
||||
```
|
||||
|
||||
### email地址
|
||||
### 邮箱地址(email)
|
||||
```javascript
|
||||
/^[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])?)*$/
|
||||
```
|
||||
|
@ -159,7 +159,7 @@ module.exports = [
|
||||
examples: ['1990-12-12', '2020-1-1']
|
||||
},
|
||||
{
|
||||
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])?)*$/,
|
||||
examples: ['90203918@qq.com', 'nbilly@126.com']
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user