mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
ignore Unicode format characters for normalization
Also adds tests. Fixes #1007.
This commit is contained in:
@@ -22,6 +22,8 @@ class PlaceColumn:
|
||||
self.add_hstore('extratags', key[6:], value)
|
||||
elif key.startswith('addr+'):
|
||||
self.add_hstore('address', key[5:], value)
|
||||
elif key in ('name', 'address', 'extratags'):
|
||||
self.columns[key] = eval('{' + value + '}')
|
||||
else:
|
||||
assert_in(key, ('class', 'type'))
|
||||
self.columns[key] = None if value == '' else value
|
||||
|
||||
Reference in New Issue
Block a user