X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/8bc3bb16a116f0152b49b00dff53fb1f37f0fb31..2c6b17f772fec2db0a8a8bac7462efecef92337e:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index 1f4eebef..537f179c 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -1738,7 +1738,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) {