mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-14 14:54:06 +00:00
fix postcode pattern for Mozambique
Optional groups are not implemented yet.
This commit is contained in:
@@ -57,7 +57,8 @@ class _PostcodeSanitizer:
|
||||
if match is None:
|
||||
return None
|
||||
|
||||
return self.matcher.normalize(country, match), ' '.join(match.groups())
|
||||
return self.matcher.normalize(country, match),\
|
||||
' '.join(filter(lambda p: p is not None, match.groups()))
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user