mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-02 17:19:38 +02:00
Fix bad detection of unnecessary trailing |
Related feedback:
- https://github.com/uBlockOrigin/uBlock-issues/discussions/1916
Regression from:
- 3b7a265ee2
This commit is contained in:
parent
1b41bffc2c
commit
6836d2b9ca
@ -658,7 +658,7 @@ const Parser = class {
|
||||
// https://github.com/gorhill/uBlock/issues/3034
|
||||
// We can remove anchoring if we need to match all at the end.
|
||||
if ( hasBits(this.flavorBits, BITFlavorNetRightAnchor) ) {
|
||||
const i = this.patternLeftAnchorSpan;
|
||||
const i = this.patternRightAnchorSpan.i;
|
||||
if (
|
||||
this.patternSpan.len === 0 ||
|
||||
hasBits(this.slices[i-3], BITIgnore|BITAsterisk)
|
||||
|
Loading…
Reference in New Issue
Block a user