From 963ffb4edeefaf560549c46366664e2043b042a3 Mon Sep 17 00:00:00 2001 From: Sunil Kamat <107644736+sukamat@users.noreply.github.com> Date: Fri, 7 Feb 2025 08:04:57 -0800 Subject: [PATCH] MWPW-161920: Fix fragment reference check (#3641) --- tools/floodbox/references.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/floodbox/references.js b/tools/floodbox/references.js index d75fba935f..c5f5884082 100644 --- a/tools/floodbox/references.js +++ b/tools/floodbox/references.js @@ -9,7 +9,7 @@ class References { this.htmlPaths = htmlPaths; // eslint-disable-next-line no-useless-escape - this.referencePattern = new RegExp(`https?:\/\/[^/]*--${repo}--${org}\\.[^/]*(?:page|live)(\/(?:fragments\/.*|.*\\.(?:pdf|svg|json)))`); + this.referencePattern = new RegExp(`https?:\/\/[^/]*--${repo}--${org}\\.[^/]*(?:page|live)(\/.*(?:fragments\/|\\.(?:pdf|svg|json))[^?]*)`); this.requestHandler = new RequestHandler(accessToken); }