mirror of https://github.com/gorhill/uBlock.git
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
|
@ -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 New Issue