street-address-rb / street-address

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

Address parsed using :informal will lose its city #8

Open zhon opened 11 years ago

zhon commented 11 years ago

Using version 1.0.5

I parse

a = StreetAddress::US.parse(
  '623 East 68th Street Apt 3D. New York', 
  informal: true)
a.to_s  # => "623 E 68th St Apt 3D"

The city, New York in this case, is lost.