Include query string when evaluating `matches-path()`

Related feedback:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1690#issuecomment-903133439
This commit is contained in:
Raymond Hill 2021-08-21 11:50:46 -04:00
parent ef5385b3f4
commit 9d4006f2c3
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ const PSelectorMatchesPathTask = class {
this.needle = new RegExp(arg0, arg1);
}
transpose(node, output) {
if ( this.needle.test(self.location.pathname) ) {
if ( this.needle.test(self.location.pathname + self.location.search) ) {
output.push(node);
}
}