]> git.openstreetmap.org Git - nominatim.git/commit
fix joining of words in structured postcode phrases (#4224)
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 18 Oct 2026 09:12:15 +0000 (11:12 +0200)
committerGitHub <noreply@github.com>
Sun, 18 Oct 2026 09:12:15 +0000 (11:12 +0200)
commitde09e5bb3b87fd2a7438cc6fefcd8bb094c59234
tree2c4d6e3b939882b58311eb456997168489a07dec
parent87eb58261cea59041cbf57e812f3726110e7af07
parent63a1fa499d3861b7ed5100717817698ad7a18f3a
fix joining of words in structured postcode phrases (#4224)

## Summary
Fixes #4223.

Adds the missing parentheses in the `PHRASE_POSTCODE` join in
`PostcodeParser.parse()`, so words after a space or dash are kept. Also
adds a parser test for a postcode phrase with a space, which fails on
master and passes with the fix.

## AI usage
Not used