Skip to content

Commit

Permalink
Include query string when evaluating matches-path()
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Aug 21, 2021
1 parent ef5385b commit 9d4006f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/contentscript-extra.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 9d4006f

Please sign in to comment.