From f054acc1f60714bbe00ad1ab270fb4977836d045 Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Wed, 30 Oct 2024 04:40:39 +0800 Subject: [PATCH] fix: test link in html reporter (#5224) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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](https://github.com/joelwmale/webhook-action/compare/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] * 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] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Josh Goldberg ✨ --- lib/reporters/html.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/reporters/html.js b/lib/reporters/html.js index 7f4fa673fc..5f57279ec2 100644 --- a/lib/reporters/html.js +++ b/lib/reporters/html.js @@ -285,9 +285,9 @@ function HTML(runner, options) { function makeUrl(s) { var search = window.location.search; - // Remove previous grep query parameter if present + // Remove previous {grep, fgrep, invert} query parameters if present if (search) { - search = search.replace(/[?&]grep=[^&\s]*/g, '').replace(/^&/, '?'); + search = search.replace(/[?&](?:f?grep|invert)=[^&\s]*/g, '').replace(/^&/, '?'); } return (