mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-15 07:22:28 +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
|
// https://github.com/gorhill/uBlock/issues/3034
|
||||||
// We can remove anchoring if we need to match all at the end.
|
// We can remove anchoring if we need to match all at the end.
|
||||||
if ( hasBits(this.flavorBits, BITFlavorNetRightAnchor) ) {
|
if ( hasBits(this.flavorBits, BITFlavorNetRightAnchor) ) {
|
||||||
const i = this.patternLeftAnchorSpan;
|
const i = this.patternRightAnchorSpan.i;
|
||||||
if (
|
if (
|
||||||
this.patternSpan.len === 0 ||
|
this.patternSpan.len === 0 ||
|
||||||
hasBits(this.slices[i-3], BITIgnore|BITAsterisk)
|
hasBits(this.slices[i-3], BITIgnore|BITAsterisk)
|
||||||
|
Loading…
Reference in New Issue
Block a user