X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ca11fc90e6e646335045e087f03d824236c798f2..356724fb8b8d34ba92b5161dec91e7afb18ab99e:/website/search.php diff --git a/website/search.php b/website/search.php index d0c45c70..5733dde4 100755 --- a/website/search.php +++ b/website/search.php @@ -309,7 +309,7 @@ $aSpecialTerms[strtolower($aSpecialTerm[1])] = $aSpecialTerm[2]; } - preg_match_all('/\\[([a-zA-Z]*)\\]/', $sQuery, $aSpecialTermsRaw, PREG_SET_ORDER); + preg_match_all('/\\[([\\w ]*)\\]/u', $sQuery, $aSpecialTermsRaw, PREG_SET_ORDER); $aSpecialTerms = array(); if (isset($aStructuredQuery['amenity']) && $aStructuredQuery['amenity']) {