mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
fix 添加统一社会信用代码15、18、20位长度匹配
This commit is contained in:
parent
b313517b61
commit
0adf663dfb
@ -1,4 +1,4 @@
|
|||||||
# 正则大全  [](https://marketplace.visualstudio.com/items?itemName=russell.any-rule) [](https://marketplace.visualstudio.com/items?itemName=russell.any-rule) [](https://marketplace.visualstudio.com/items?itemName=russell.any-rule)  [](https://circleci.com/gh/any86/any-rule)
|
# 正则大全  [](https://marketplace.visualstudio.com/items?itemName=russell.any-rule) [](https://marketplace.visualstudio.com/items?itemName=russell.any-rule) [](https://marketplace.visualstudio.com/items?itemName=russell.any-rule)  [](https://circleci.com/gh/any86/any-rule)
|
||||||
|
|
||||||
🦕支持**web** / **vscode** / **idea** / **Alfred Workflow**多平台
|
🦕支持**web** / **vscode** / **idea** / **Alfred Workflow**多平台
|
||||||
|
|
||||||
@ -105,6 +105,11 @@ vscode应用商店中搜索"**any-rule**".
|
|||||||
/^[0-9A-HJ-NPQRTUWXY]{2}\d{6}[0-9A-HJ-NPQRTUWXY]{10}$/
|
/^[0-9A-HJ-NPQRTUWXY]{2}\d{6}[0-9A-HJ-NPQRTUWXY]{10}$/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### 统一社会信用代码(宽松匹配)(15位/18位/20位数字/字母)
|
||||||
|
```javascript
|
||||||
|
/^(([0-9A-Za-z]{15})|([0-9A-Za-z]{18})|([0-9A-Za-z]{20}))$/
|
||||||
|
```
|
||||||
|
|
||||||
### 迅雷链接
|
### 迅雷链接
|
||||||
```javascript
|
```javascript
|
||||||
/^thunderx?:\/\/[a-zA-Z\d]+=$/
|
/^thunderx?:\/\/[a-zA-Z\d]+=$/
|
||||||
|
@ -25,7 +25,11 @@ module.exports = [{
|
|||||||
rule: /^[0-9A-HJ-NPQRTUWXY]{2}\d{6}[0-9A-HJ-NPQRTUWXY]{10}$/,
|
rule: /^[0-9A-HJ-NPQRTUWXY]{2}\d{6}[0-9A-HJ-NPQRTUWXY]{10}$/,
|
||||||
examples: ['91230184MA1BUFLT44', '92371000MA3MXH0E3W'],
|
examples: ['91230184MA1BUFLT44', '92371000MA3MXH0E3W'],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '统一社会信用代码(宽松匹配)(15位/18位/20位数字/字母)',
|
||||||
|
rule: /^(([0-9A-Za-z]{15})|([0-9A-Za-z]{18})|([0-9A-Za-z]{20}))$/,
|
||||||
|
examples: ['91110108772551611J', '911101085923662400']
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '迅雷链接',
|
title: '迅雷链接',
|
||||||
rule: /^thunderx?:\/\/[a-zA-Z\d]+=$/,
|
rule: /^thunderx?:\/\/[a-zA-Z\d]+=$/,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user