Skip to content

Commit

Permalink
Merge pull request #178 from freelawproject/update-usc-codes
Browse files Browse the repository at this point in the history
feat(laws.json): Upgrade laws.json
  • Loading branch information
flooie authored Apr 5, 2024
2 parents d3c57f0 + 43a1778 commit f517072
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions reporters_db/data/laws.json
Original file line number Diff line number Diff line change
Expand Up @@ -5534,12 +5534,15 @@
"1 U.S.C. sec. 1",
"1 U.S.C. Sections 1-2",
"1 USC S. 1-2",
"1 U.S. Code §1"
"1 U.S. Code §1",
"21, United States Code, Section 853",
"18, United States Code, Section 3500",
"18, United States Code, Section 981(a)(l)(C)"
],
"jurisdiction": "United States",
"name": "United States Code; United States Code Annotated; United States Code Service; Gould’s United States Code Unannotated",
"regexes": [
"(?P<title>\\d+)\\s+$reporter\\s+$section_marker\\s*$law_section"
"(?P<title>\\d+),?\\s+$reporter,?\\s+$section_marker\\s*$law_section"
],
"start": null,
"variations": [
Expand All @@ -5548,7 +5551,8 @@
"U.S.C.A.",
"U.S.C.S.",
"U.S.C.U.",
"U.S. Code"
"U.S. Code",
"United States Code"
]
}
],
Expand Down
4 changes: 2 additions & 2 deletions reporters_db/data/regexes.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"#": "Regexes used in laws.json",
"day": "(?P<day>\\d{1,2}),?",
"month": "(?P<month>[A-Z][a-z]+\\.?)",
"section": "(?P<section>\\d+(?:[\\-.:]\\d+){,3})",
"section#": "Section like 1-2-3, 1.2.3, or 1:2-3.4",
"section": "(?P<section>(?:\\d+(?:[\\-.:]\\d+){,3})|(?:\\d+(?:\\((?:[a-zA-Z]{1}|\\d{1,2})\\))+))",
"section#": "Section like 1-2-3, 1.2.3, or 1:2-3.4 or 81(a)(2)(F) or 81(a)",
"subject": "(?P<subject>$law_subject_word(?: $law_subject_word| &){,4})",
"subject#": "One to five word statute subject like 'Parks Rec. & Hist. Preserv.', 'Not-for-Profit Corp.', 'Alt. County Gov’t', 'R.R.'",
"subject_word": "[A-Z][.\\-'A-Za-z]*",
Expand Down

0 comments on commit f517072

Please sign in to comment.