[openaddresses] Ditto for numeric boundary names
This commit is contained in:
@@ -160,7 +160,7 @@ class OpenAddressesFormatter(object):
|
|||||||
|
|
||||||
if key in AddressFormatter.BOUNDARY_COMPONENTS:
|
if key in AddressFormatter.BOUNDARY_COMPONENTS:
|
||||||
value = self.components.cleaned_name(value, first_comma_delimited_phrase=True)
|
value = self.components.cleaned_name(value, first_comma_delimited_phrase=True)
|
||||||
if value and len(value) < 2:
|
if value and len(value) < 2 or is_numeric(value):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
components[key] = value.strip(', ')
|
components[key] = value.strip(', ')
|
||||||
|
|||||||
Reference in New Issue
Block a user