mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 17:17:57 +01:00
Fix presumed network filter not being a valid network filter
Related feedback: - https://github.com/uBlockOrigin/uBlock-issues/issues/2560#issuecomment-1492959500
This commit is contained in:
parent
40e61cbf6a
commit
e2d837a2db
1 changed files with 1 additions and 0 deletions
|
@ -1126,6 +1126,7 @@ export class AstFilterParser {
|
||||||
if ( tail !== 0 ) {
|
if ( tail !== 0 ) {
|
||||||
this.linkRight(prev, tail);
|
this.linkRight(prev, tail);
|
||||||
}
|
}
|
||||||
|
if ( this.astType !== AST_TYPE_NETWORK ) { return 0; }
|
||||||
this.validateNet();
|
this.validateNet();
|
||||||
return this.throwHeadNode(head);
|
return this.throwHeadNode(head);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue