Skip to content

Commit

Permalink
Merge pull request #5223 from openstates/pr-fix-identifier-alpha
Browse files Browse the repository at this point in the history
PR: fix truncated alphabetical part of bill identifiers
  • Loading branch information
jessemortenson authored Jan 16, 2025
2 parents 682bb5f + 5d214ab commit 48dc379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapers/pr/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def scrape_bill(self, chamber, session, url):
)
if len(page_header_elems) > 0:
page_header_text = page_header_elems[0].strip()
bill_id = re.findall(r"[A-Z]{2}\d{4}", page_header_text)[0]
bill_id = re.findall(r"[A-Z]{2,3}\d{4}", page_header_text)[0]
else:
self.logger.error(f"Bill found with no bill identifier at {url}")

Expand Down

0 comments on commit 48dc379

Please sign in to comment.