forked from hans/Nominatim
allow any unicode letter and spaces in special terms
Allows to search for things like [fish shop].
This commit is contained in:
@@ -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'])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user