street-address-rb / street-address

Detect, and dissect, US Street Addresses in strings.
MIT License
168 stars 85 forks source link

PO box not parsing properly. #14

Closed ghost closed 9 years ago

ghost commented 10 years ago

Here is my irb console report:

a = StreetAddress::US.parse("1410 Durham, NC 27702") => 141 0, Durham, NC 27702 irb(main):010:0> a.number => "141"

It should be 1410 but it is returning 141.

It is also same when I'm trying this:

irb(main):004:0> a = StreetAddress::US.parse("1600 Washington, DC, 20500") => 160 0, Washington, DC 20500 irb(main):005:0> a.number => "160"

derrek commented 9 years ago

I can't reproduce this. @sachinprasad it has been a long time. Do you still see this problem? If so what version of the gem?

lulalalalistia commented 8 years ago

@derrek I have tested. This bug was fixed on master branch, but not on the latest gem (1.0.6). Do you still plan to release a new version? Cheers~~