1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

Ignore line, do not report as error

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2560#issuecomment-1492959500
This commit is contained in:
Raymond Hill 2023-04-01 13:50:53 -04:00
parent e2d837a2db
commit b10f15dd89
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

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