mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
Merge pull request #156 from richex-cn/new-rule-uuid
add rule for UUID/GUID
This commit is contained in:
commit
e3e204bb26
@ -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**多平台
|
||||||
|
|
||||||
@ -175,6 +175,11 @@ vscode应用商店中搜索"**any-rule**".
|
|||||||
/^([a-f\d]{32}|[A-F\d]{32})$/
|
/^([a-f\d]{32}|[A-F\d]{32})$/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### GUID(Globally Unique Identifier 全球唯一标识符) / UUID(Universally Unique IDentifier)
|
||||||
|
```javascript
|
||||||
|
/^[a-f\d]{4}(?:[a-f\d]{4}-){4}[a-f\d]{12}$/i
|
||||||
|
```
|
||||||
|
|
||||||
### 版本号(version)格式必须为X.Y.Z
|
### 版本号(version)格式必须为X.Y.Z
|
||||||
```javascript
|
```javascript
|
||||||
/^\d+(?:\.\d+){2}$/
|
/^\d+(?:\.\d+){2}$/
|
||||||
|
@ -97,6 +97,11 @@ module.exports = [{
|
|||||||
rule: /^([a-f\d]{32}|[A-F\d]{32})$/,
|
rule: /^([a-f\d]{32}|[A-F\d]{32})$/,
|
||||||
examples: ['21fe181c5bfc16306a6828c1f7b762e8'],
|
examples: ['21fe181c5bfc16306a6828c1f7b762e8'],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: 'GUID(Globally Unique Identifier 全球唯一标识符) / UUID(Universally Unique IDentifier)',
|
||||||
|
rule: /^[a-f\d]{4}(?:[a-f\d]{4}-){4}[a-f\d]{12}$/i,
|
||||||
|
examples: ['e155518c-ca1b-443c-9be9-fe90fdab7345', '41E3DAF5-6E37-4BCC-9F8E-0D9521E2AA8D', '00000000-0000-0000-0000-000000000000'],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '版本号(version)格式必须为X.Y.Z',
|
title: '版本号(version)格式必须为X.Y.Z',
|
||||||
rule: /^\d+(?:\.\d+){2}$/,
|
rule: /^\d+(?:\.\d+){2}$/,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user