mirror of https://github.com/gorhill/uBlock.git
Include query string when evaluating `matches-path()`
Related feedback: - https://github.com/uBlockOrigin/uBlock-issues/issues/1690#issuecomment-903133439
This commit is contained in:
parent
ef5385b3f4
commit
9d4006f2c3
|
@ -111,7 +111,7 @@ const PSelectorMatchesPathTask = class {
|
||||||
this.needle = new RegExp(arg0, arg1);
|
this.needle = new RegExp(arg0, arg1);
|
||||||
}
|
}
|
||||||
transpose(node, output) {
|
transpose(node, output) {
|
||||||
if ( this.needle.test(self.location.pathname) ) {
|
if ( this.needle.test(self.location.pathname + self.location.search) ) {
|
||||||
output.push(node);
|
output.push(node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue