Skip to content

Commit

Permalink
Merge pull request #58 from argyle-engineering/floor-hyphen
Browse files Browse the repository at this point in the history
Support hyphened floor numbers
  • Loading branch information
lmelninkas authored Oct 9, 2024
2 parents e81b9c3 + df6134b commit c159b0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyap/source_US/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ def street_type_list_to_regex(street_type_list: list[str]) -> str:
floor = r"""
(?P<floor>
(?:
\d+[A-Za-z]{{0,2}}\.?\ {floor_indic}
(?:\d+|\d-\d)[A-Za-z]{{0,2}}\.?\ {floor_indic}
)
|
(?:
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 @@ -405,6 +405,7 @@ def test_po_box_positive(input, expected):
"input,expected",
[
# positive assertions
("14001 E. ILIFF AVE 5-7TH FLOOR", True),
("1111 WILSON BVD STE 2222", True),
("800 W EL CAMINO REAL\n350 STE *", True),
("899 HEATHROW PARK LN", True),
Expand Down

0 comments on commit c159b0f

Please sign in to comment.