Skip to content

Commit

Permalink
refactor(content_delegate): Tweaks the regex to extract the ZIP URL
Browse files Browse the repository at this point in the history
  • Loading branch information
ERosendo committed Nov 16, 2023
1 parent 342cdb9 commit 611ac67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content_delegate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 611ac67

Please sign in to comment.