mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
chore: 文档中增加收录条数和开源许可
This commit is contained in:
parent
f295e1f0bd
commit
2f10bbc61d
@ -1,5 +1,6 @@
|
|||||||
# 正则大全
|
# 正则大全  
|
||||||
图形界面: https://any86.github.io/any-rule/
|
:whale:图形界面: https://any86.github.io/any-rule/
|
||||||
|
|
||||||
|
|
||||||
## html注释
|
## html注释
|
||||||
```javascript
|
```javascript
|
||||||
@ -103,7 +104,7 @@
|
|||||||
|
|
||||||
## email地址
|
## email地址
|
||||||
```javascript
|
```javascript
|
||||||
/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/
|
/^[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])?)*$/
|
||||||
```
|
```
|
||||||
|
|
||||||
## 国内座机电话,如: 0341-86091234
|
## 国内座机电话,如: 0341-86091234
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const chalk = require('chalk');
|
const chalk = require('chalk');
|
||||||
const json = require('../src/RULES.js');
|
const json = require('../src/RULES.js');
|
||||||
let content = `# 正则大全
|
let content = `# 正则大全  
|
||||||
图形界面: https://any86.github.io/any-rule/\r\n`;
|
:whale:图形界面: https://any86.github.io/any-rule/\r\n
|
||||||
|
`;
|
||||||
|
|
||||||
json.forEach(({title, rule})=>{
|
json.forEach(({title, rule})=>{
|
||||||
content+= `\r\n## ${title}\r\n`;
|
content+= `\r\n## ${title}\r\n`;
|
||||||
content+= `\`\`\`javascript\r\n`;
|
content+= `\`\`\`javascript\r\n`;
|
||||||
|
@ -102,7 +102,7 @@ module.exports = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'email地址',
|
title: 'email地址',
|
||||||
rule: /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,
|
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'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user