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:
Raymond Hill 2023-04-01 09:05:36 -04:00
parent 40e61cbf6a
commit e2d837a2db
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -1126,6 +1126,7 @@ export class AstFilterParser {
if ( tail !== 0 ) {
this.linkRight(prev, tail);
}
if ( this.astType !== AST_TYPE_NETWORK ) { return 0; }
this.validateNet();
return this.throwHeadNode(head);
}