mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-03 17:49:39 +02:00
Fix broken filter parsing when prepended with spaces
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/2540
This commit is contained in:
parent
f4391adc5c
commit
b63ced24d4
@ -1096,7 +1096,7 @@ export class AstFilterParser {
|
||||
let anchorBeg = this.indexOfNetAnchor(parentStr, patternBeg);
|
||||
if ( anchorBeg === -1 ) { return 0; }
|
||||
anchorBeg += parentBeg;
|
||||
if ( anchorBeg !== parentStr.length ) {
|
||||
if ( anchorBeg !== parentEnd ) {
|
||||
tail = this.allocTypedNode(
|
||||
NODE_TYPE_NET_OPTIONS_ANCHOR,
|
||||
anchorBeg,
|
||||
|
Loading…
Reference in New Issue
Block a user