Skip to content

Commit

Permalink
feat(pacer): Tweaks parseGoDLSFunction to handle new param in distric…
Browse files Browse the repository at this point in the history
…t courts
  • Loading branch information
ERosendo committed Sep 19, 2024
1 parent d275956 commit 34f6e2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pacer.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,9 +536,9 @@ let PACER = {
// https://ecf.flnd.uscourts.gov/lib/dls_url.js
// as:
// function goDLS(hyperlink, de_caseid, de_seqno, got_receipt,
// pdf_header, pdf_toggle_possible, magic_num, hdr)
// pdf_header, pdf_toggle_possible, magic_num, hdr, psf_report)
//
// Bankruptcy courts provide ten parameters, instead of eight. These can
// Bankruptcy courts provide ten parameters, instead of nine. These can
// be found in unminified js:
// https://ecf.paeb.uscourts.gov/lib/dls_url.js
// as:
Expand All @@ -548,15 +548,15 @@ let PACER = {
// Δ:
// - hdr
// + claim_id, claim_num, claim_doc_seq
let goDlsDistrict = /^goDLS\('([^']*)','([^']*)','([^']*)','([^']*)','([^']*)','([^']*)','([^']*)','([^']*)'\)/.exec(goDLS_string);
let goDlsDistrict = /^goDLS\('([^']*)','([^']*)','([^']*)','([^']*)','([^']*)','([^']*)','([^']*)','([^']*)','([^']*)'\)/.exec(goDLS_string);
let goDlsBankr= /^goDLS\('([^']*)','([^']*)','([^']*)','([^']*)','([^']*)','([^']*)','([^']*)','([^']*)','([^']*)','([^']*)'\)/.exec(goDLS_string);
if (!goDlsDistrict && !goDlsBankr) {
return null;
}
let r = {};
if (goDlsDistrict){
[, r.hyperlink, r.de_caseid, r.de_seqno, r.got_receipt, r.pdf_header,
r.pdf_toggle_possible, r.magic_num, r.hdr] = goDlsDistrict;
r.pdf_toggle_possible, r.magic_num, r.hdr, r.psf_report] = goDlsDistrict;
} else {
[, r.hyperlink, r.de_caseid, r.de_seqno, r.got_receipt, r.pdf_header,
r.pdf_toggle_possible, r.magic_num, r.claim_id, r.claim_num,
Expand Down

0 comments on commit 34f6e2d

Please sign in to comment.