mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-15 15:32:28 +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);
|
let anchorBeg = this.indexOfNetAnchor(parentStr, patternBeg);
|
||||||
if ( anchorBeg === -1 ) { return 0; }
|
if ( anchorBeg === -1 ) { return 0; }
|
||||||
anchorBeg += parentBeg;
|
anchorBeg += parentBeg;
|
||||||
if ( anchorBeg !== parentStr.length ) {
|
if ( anchorBeg !== parentEnd ) {
|
||||||
tail = this.allocTypedNode(
|
tail = this.allocTypedNode(
|
||||||
NODE_TYPE_NET_OPTIONS_ANCHOR,
|
NODE_TYPE_NET_OPTIONS_ANCHOR,
|
||||||
anchorBeg,
|
anchorBeg,
|
||||||
|
Loading…
Reference in New Issue
Block a user