Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mangles PO boxes #8

Open
topherhunt opened this issue Aug 26, 2014 · 0 comments
Open

Mangles PO boxes #8

topherhunt opened this issue Aug 26, 2014 · 0 comments

Comments

@topherhunt
Copy link

Hi there, thanks for all your work on this so far. I'm struggling to get Normalic to behave with PO boxes, but please let me know if there's a solution to this that I'm not seeing. I notice that PO boxes show up in some of the regexes in address.rb, so I assume that this is a bug rather than a missing feature.

When we try to parse a PO box address with Normalic, it drops the box number and decides that the street name is "Po". To reproduce:

address = Normalic::Address.parse("P.O. Box 1542, Concord, NH 03301")
# => Po, Concord, NH 03301
address.street
# => "Po"

We're using 0.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant