mirror of https://github.com/gorhill/uBlock.git
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:
parent
313d488314
commit
70e2864ca4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue