mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 07:38:58 +08:00
Merge branch 'develop' of https://github.com/any86/any-rule into develop
This commit is contained in:
commit
e801a13e8c
@ -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**多平台
|
||||
|
||||
@ -175,6 +175,11 @@ vscode应用商店中搜索"**any-rule**".
|
||||
/^([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
|
||||
```javascript
|
||||
/^\d+(?:\.\d+){2}$/
|
||||
|
@ -185,7 +185,7 @@ export default {
|
||||
|
||||
search() {
|
||||
if ('' !== this.keyword) {
|
||||
this.rules = this.rules.filter(({ title }) => -1 !== title.indexOf(this.keyword.toLowerCase()));
|
||||
this.rules = this.rules.filter(({ title }) => -1 !== title.toLowerCase().indexOf(this.keyword.toLowerCase()));
|
||||
} else {
|
||||
this.rules = RULES;
|
||||
}
|
||||
|
@ -97,6 +97,11 @@ module.exports = [{
|
||||
rule: /^([a-f\d]{32}|[A-F\d]{32})$/,
|
||||
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',
|
||||
rule: /^\d+(?:\.\d+){2}$/,
|
||||
|
Loading…
x
Reference in New Issue
Block a user