From 70e2864ca40b2d88d9aad42a22c7dbab3f23cddc Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 29 Jan 2023 16:13:43 -0500 Subject: [PATCH] Fix broken parser involving specific filters with Unicode characters Related feedback: - https://www.reddit.com/r/uBlockOrigin/comments/10obivd/ The issue was arising with filters of the form: ||example.org^$domain=[domain name with Unicode characters] --- src/js/static-filtering-parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/static-filtering-parser.js b/src/js/static-filtering-parser.js index 420d385bd..dbd778daa 100644 --- a/src/js/static-filtering-parser.js +++ b/src/js/static-filtering-parser.js @@ -1189,7 +1189,7 @@ export class AstFilterParser { parentEnd - 1 ); this.addNodeToRegister(NODE_TYPE_NET_PATTERN, next); - if ( normal !== pattern ) { + if ( normal !== undefined && normal !== pattern ) { this.setNodeTransform(next, normal); } prev = this.linkRight(prev, next);