mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
fix 子网掩码正则错误问题
This commit is contained in:
parent
9c322ba759
commit
9690773b33
@ -106,9 +106,9 @@ vscode应用商店中搜索"**any-rule**".
|
||||
/^magnet:\?xt=urn:btih:[0-9a-fA-F]{40,}.*$/
|
||||
```
|
||||
|
||||
### 子网掩码
|
||||
### 子网掩码(不包含 0.0.0.0)
|
||||
```javascript
|
||||
/^(?:\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}$/
|
||||
/^(254|252|248|240|224|192|128)\.0\.0\.0|255\.(254|252|248|240|224|192|128|0)\.0\.0|255\.255\.(254|252|248|240|224|192|128|0)\.0|255\.255\.255\.(255|254|252|248|240|224|192|128|0)$/
|
||||
```
|
||||
|
||||
### linux"隐藏文件"路径
|
||||
|
@ -48,9 +48,9 @@ module.exports = [{
|
||||
examples: ['magnet:?xt=urn:btih:40A89A6F4FB1498A98087109D012A9A851FBE0FC'],
|
||||
},
|
||||
{
|
||||
title: '子网掩码',
|
||||
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}$/,
|
||||
examples: ['255.255.255.0', '255.224.0.0']
|
||||
title: '子网掩码(不包含 0.0.0.0)',
|
||||
rule: /^(254|252|248|240|224|192|128)\.0\.0\.0|255\.(254|252|248|240|224|192|128|0)\.0\.0|255\.255\.(254|252|248|240|224|192|128|0)\.0|255\.255\.255\.(255|254|252|248|240|224|192|128|0)$/,
|
||||
examples: ['255.255.255.0', '255.255.255.255','255.240.0.0']
|
||||
},
|
||||
{
|
||||
title: 'linux"隐藏文件"路径',
|
||||
|
Loading…
x
Reference in New Issue
Block a user