From e2d837a2dbc1d18ce78ea40ce93ad6f8ecddcbb3 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 1 Apr 2023 09:05:36 -0400 Subject: [PATCH] Fix presumed network filter not being a valid network filter Related feedback: - https://github.com/uBlockOrigin/uBlock-issues/issues/2560#issuecomment-1492959500 --- src/js/static-filtering-parser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/static-filtering-parser.js b/src/js/static-filtering-parser.js index 048ece0a5..15c7a581c 100644 --- a/src/js/static-filtering-parser.js +++ b/src/js/static-filtering-parser.js @@ -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); }