mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-22 12:06:27 +03:00
contract duplicate spaces in transliteration string
There are some pathological cases where an isolated letter may be deleted because it is in itself meaningless. If this happens in the middle of a sentence, then the transliteration contains two consecutive spaces. Add a final rule to fix this. See #2909.
This commit is contained in:
parent
45d13bc295
commit
0e186835b9
@ -24,6 +24,7 @@ transliteration:
|
||||
- ":: lower ()"
|
||||
- "[^a-z0-9[:Space:]] >"
|
||||
- ":: NFC ()"
|
||||
- "[:Space:]+ > ' '"
|
||||
sanitizers:
|
||||
- step: clean-housenumbers
|
||||
filter-kind:
|
||||
|
Loading…
Reference in New Issue
Block a user