Skip to content

Commit f054acc

Browse files
danny0838dependabot[bot]JoshuaKGoldberg
authored
fix: test link in html reporter (#5224)
* build(deps): bump the github-actions group with 1 update Bumps the github-actions group with 1 update: [joelwmale/webhook-action](https://github.com/joelwmale/webhook-action). Updates `joelwmale/webhook-action` from 2.3.2 to 2.4.1 - [Release notes](https://github.com/joelwmale/webhook-action/releases) - [Commits](joelwmale/webhook-action@2.3.2...2.4.1) --- updated-dependencies: - dependency-name: joelwmale/webhook-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <[email protected]> * fix: remove bad test link params in HTML reporter - `grep` may not work as expected if a previous `fgrep` or `invert` parameter exists. * Update .github/workflows/nightly-site-deploy.yml --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Josh Goldberg ✨ <[email protected]>
1 parent e536ab2 commit f054acc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/reporters/html.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,9 @@ function HTML(runner, options) {
285285
function makeUrl(s) {
286286
var search = window.location.search;
287287

288-
// Remove previous grep query parameter if present
288+
// Remove previous {grep, fgrep, invert} query parameters if present
289289
if (search) {
290-
search = search.replace(/[?&]grep=[^&\s]*/g, '').replace(/^&/, '?');
290+
search = search.replace(/[?&](?:f?grep|invert)=[^&\s]*/g, '').replace(/^&/, '?');
291291
}
292292

293293
return (

0 commit comments

Comments
 (0)