Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pyap/source_US/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,11 @@ def state_highway_abbrvs_regex() -> str:

# Some states name their state-maintained highways by the state abbreviation
# and the number.
numbered_state_highway = r"""(?:{states}\ \d{{1,4}}(?!\d))""".format(
numbered_state_highway = r"""
(?:{states}\ \d{{1,4}}(?!\d))
|
(?:[Ss][Tt][Aa][Tt][Ee]\s[Hh][Ww][Yy]\s\d{{1,4}}(?!\d))
""".format(
states=state_highway_abbrvs_regex()
)

Expand Down
1 change: 1 addition & 0 deletions tests/test_parser_us.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ def test_po_box_positive(input, expected):
"input,expected",
[
# positive assertions
("700 STATE HWY 121, STE 200", True),
("10354 Smoothwater Dr Site 142", True),
("2101 W. STATE ROAD 434\nSUITE 315", True),
("14001 E. ILIFF AVE 5-7TH FLOOR", True),
Expand Down
Loading