mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
Merge remote-tracking branch 'origin/develop'
* origin/develop: chore: 替换首页的gif地址 refactor: 精简不必要的/ fix: Linux 文件和文件夹命名应该允许除/外的任意字符(#58) fix: Linux 文件和文件夹命名应该允许除/外的任意字符(#57)
This commit is contained in:
commit
97544371dd
@ -11,8 +11,7 @@ https://any86.github.io/any-rule/
|
||||
3. 输入"**zz**"可以看到正则列表.
|
||||
4. 或者**输入关键词**, 比如"手机".
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## :fire:关于PR
|
||||
欢迎大家PR, 步骤如下:
|
||||
@ -72,12 +71,12 @@ https://any86.github.io/any-rule/
|
||||
|
||||
### linux"文件夹"路径
|
||||
```javascript
|
||||
/^\/(\w+\/?)+$/
|
||||
/^(\/[^\/]+)+\/?$/
|
||||
```
|
||||
|
||||
### linux"文件"路径
|
||||
```javascript
|
||||
/^\/(\w+\/)+\w+\.\w+$/
|
||||
/^(\/[^\/]+)+$/
|
||||
```
|
||||
|
||||
### window下"文件夹"路径
|
||||
|
@ -50,12 +50,12 @@ module.exports = [{
|
||||
},
|
||||
{
|
||||
title: 'linux"文件夹"路径',
|
||||
rule: /^\/(\w+\/?)+$/,
|
||||
examples: ['/usr/ad/dd', '/root/']
|
||||
rule: /^(\/[^/]+)+\/?$/,
|
||||
examples: ['/usr/ad/dd', '/root/','/.gitignore']
|
||||
},
|
||||
{
|
||||
title: 'linux"文件"路径',
|
||||
rule: /^\/(\w+\/)+\w+\.\w+$/,
|
||||
rule: /^(\/[^/]+)+$/,
|
||||
examples: ['/usr/ad/dd/a.js', '/root/b.ts']
|
||||
},
|
||||
{
|
||||
|
@ -32,7 +32,7 @@ https://any86.github.io/any-rule/
|
||||
3. 输入"**zz**"可以看到正则列表.
|
||||
4. 或者**输入关键词**, 比如"手机".
|
||||
|
||||

|
||||

|
||||
|
||||
## :fire:关于PR
|
||||
欢迎大家PR, 步骤如下:
|
||||
|
Loading…
x
Reference in New Issue
Block a user