mirror of
https://github.com/privacy-protection-tools/anti-AD.git
synced 2025-02-13 17:12:41 +08:00
Merge pull request #718 from MkQtS/adlist-maker
Avoid blocking domains that should be allowed
This commit is contained in:
commit
8c3a38e1e2
@ -95,7 +95,7 @@ class addressMaker{
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(preg_match('/^\|\|([0-9a-z\-\.]+[a-z]+)\^(\$([^=]+?,)?(image|third-party|script)(,[^=]+)?)?$/', $line, $matches)){
|
if(preg_match('/^\|\|([0-9a-z\-\.]+[a-z]+)\^(\$([^=~]+?,)?(image|third-party|script)(,[^=~]+)?)?$/', $line, $matches)){
|
||||||
|
|
||||||
if(substr($matches[1], 0, 4) == 'www.'){
|
if(substr($matches[1], 0, 4) == 'www.'){
|
||||||
$row = substr($matches[1], 4);
|
$row = substr($matches[1], 4);
|
||||||
|
Loading…
Reference in New Issue
Block a user