From 611ac672fba145c068712019606fa267902e2522 Mon Sep 17 00:00:00 2001 From: Eduardo Rosendo Date: Thu, 16 Nov 2023 10:28:58 -0400 Subject: [PATCH] refactor(content_delegate): Tweaks the regex to extract the ZIP URL --- src/content_delegate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content_delegate.js b/src/content_delegate.js index 04422842..4e596a00 100644 --- a/src/content_delegate.js +++ b/src/content_delegate.js @@ -549,7 +549,7 @@ ContentDelegate.prototype.onDownloadAllSubmit = async function (event) { return frames[0].src; } // Try to extract the PDF URL from the HTML - const showTempURL = html.match(/\/cgi-bin\/show_temp.pl?(.*)/); + const showTempURL = html.match(new RegExp(String.raw`/cgi-bin/show_temp\.pl\?.*`)); if (!showTempURL) { return null; }