1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-05 18:49:39 +02:00

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

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