fix 子网掩码正则错误问题

This commit is contained in:
jiangkai@flksec.com 2021-11-19 10:47:37 +08:00
parent 9c322ba759
commit 9690773b33
2 changed files with 67 additions and 67 deletions

View File

@ -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"隐藏文件"路径

View File

@ -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"隐藏文件"路径',