X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c48fb88e6b4020e960ccb656cb0741ab5f2fec74..9e54d1d6eb3e418c13ea090eeee4c9f9ee30b55a:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index c6341829..b12f9607 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -1737,7 +1737,7 @@ class Geocode $aClassType = getClassTypesWithImportance(); $aRecheckWords = preg_split('/\b[\s,\\-]*/u', $sQuery); foreach ($aRecheckWords as $i => $sWord) { - if (!preg_match('/\pL/', $sWord)) unset($aRecheckWords[$i]); + if (!preg_match('/[\pL\pN]/', $sWord)) unset($aRecheckWords[$i]); } if (CONST_Debug) {