You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similarly, if a street address ends with a street name that is also a state, it will make the same assumption:
> StreetAddress::US.parse("122 N Virginia").to_s
=> "12 2, N, VA"
It might be more accurate to look at the number of word parts before looking for state, and/or make an exception for "Ct" in combination with number of word parts.
The text was updated successfully, but these errors were encountered:
This is also a problem with KY, LA, and MT ( # special case for Connecticut (CT) (?=.*#{street_type_regexp}.*(CT|KY|LA|MT).*) #{street_regexp}\W+(?=.*(CT|KY|LA|MT).) | #{street_regexp}\W+ )
It is assuming "Ct" is a state, and parsing the rest of the string accordingly:
Similarly, if a street address ends with a street name that is also a state, it will make the same assumption:
It might be more accurate to look at the number of word parts before looking for state, and/or make an exception for "Ct" in combination with number of word parts.
The text was updated successfully, but these errors were encountered: