mirror of https://github.com/gorhill/uBlock.git
Fix incorrect use of `this` in static method
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/568
Regression from:
- 19ece97b0c
This commit is contained in:
parent
8a7e704080
commit
57890d60ff
|
@ -585,7 +585,7 @@ const FilterWildcard1 = class {
|
||||||
}
|
}
|
||||||
|
|
||||||
static compile(details) {
|
static compile(details) {
|
||||||
if ( this.token === '*' ) { return; }
|
if ( details.token === '*' ) { return; }
|
||||||
if ( details.anchor !== 0 ) { return; }
|
if ( details.anchor !== 0 ) { return; }
|
||||||
const s = details.f;
|
const s = details.f;
|
||||||
let pos = s.indexOf('*');
|
let pos = s.indexOf('*');
|
||||||
|
@ -700,7 +700,7 @@ const FilterWildcard1HnAnchored = class {
|
||||||
}
|
}
|
||||||
|
|
||||||
static compile(details) {
|
static compile(details) {
|
||||||
if ( this.token === '*' ) { return; }
|
if ( details.token === '*' ) { return; }
|
||||||
if ( (details.anchor & 0x0b001) !== 0 ) { return; }
|
if ( (details.anchor & 0x0b001) !== 0 ) { return; }
|
||||||
const s = details.f;
|
const s = details.f;
|
||||||
let pos = s.indexOf('*');
|
let pos = s.indexOf('*');
|
||||||
|
|
Loading…
Reference in New Issue