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]
This commit is contained in:
Raymond Hill 2023-01-29 16:13:43 -05:00
parent 313d488314
commit 70e2864ca4
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

@ -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);