mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
refactor: 新增'linux"隐藏文件"路径'(#72)
This commit is contained in:
parent
3ae26610b4
commit
97866c3869
@ -119,14 +119,14 @@ vscode应用商店中搜索"**any-rule**".
|
|||||||
/^(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])(?:\.(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])){3}$/
|
/^(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])(?:\.(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])){3}$/
|
||||||
```
|
```
|
||||||
|
|
||||||
### linux"文件夹"路径
|
### linux"隐藏文件"路径
|
||||||
```javascript
|
```javascript
|
||||||
/^(\/[^/]+)+\/?$/
|
/^\/(?:[^/]+\/)*\.[^/]*/
|
||||||
```
|
```
|
||||||
|
|
||||||
### linux"文件"路径
|
### linux"文件(夹)"路径
|
||||||
```javascript
|
```javascript
|
||||||
/^(\/[^/]+)+$/
|
/^\/[\s\S]+/
|
||||||
```
|
```
|
||||||
|
|
||||||
### window"文件夹"路径
|
### window"文件夹"路径
|
||||||
|
@ -49,14 +49,14 @@ module.exports = [{
|
|||||||
examples: ['255.255.255.0', '255.224.0.0']
|
examples: ['255.255.255.0', '255.224.0.0']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'linux"文件夹"路径',
|
title: 'linux"隐藏文件"路径',
|
||||||
rule: /^(\/[^/]+)+\/?$/,
|
rule: /^\/(?:[^/]+\/)*\.[^/]*/,
|
||||||
examples: ['/usr/ad/dd', '/root/','/.gitignore']
|
examples: ['/usr/ad/.dd', '/root/.gitignore', '/.gitignore']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'linux"文件"路径',
|
title: 'linux"文件(夹)"路径',
|
||||||
rule: /^(\/[^/]+)+$/,
|
rule: /^\/[\s\S]+/,
|
||||||
examples: ['/usr/ad/dd/a.js', '/root/b.ts']
|
examples: ['/usr/ad/dd/', '/root/b.ts','/root/abc']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'window"文件夹"路径',
|
title: 'window"文件夹"路径',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user