Skip to content

Commit

Permalink
Merge pull request #349 from freelawproject/fix-and-clean-up-regex
Browse files Browse the repository at this point in the history
refactor(content_delegate): Tweaks the regex to extract the ZIP URL
  • Loading branch information
johnhawkinson authored Nov 16, 2023
2 parents 3455bbb + 611ac67 commit 80204db
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 80204db

Please sign in to comment.