[openaddresses] Don't allow single-letter boundary names as they're probably just typos
This commit is contained in:
@@ -160,6 +160,8 @@ class OpenAddressesFormatter(object):
|
||||
|
||||
if key in AddressFormatter.BOUNDARY_COMPONENTS:
|
||||
value = self.components.cleaned_name(value, first_comma_delimited_phrase=True)
|
||||
if value and len(value) < 2:
|
||||
continue
|
||||
|
||||
components[key] = value.strip(', ')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user