mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-24 06:22:08 +03:00
allow any unicode letter and spaces in special terms
Allows to search for things like [fish shop].
This commit is contained in:
parent
87ad4fb82f
commit
4d2b88dd3e
@ -308,7 +308,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'])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user