mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-15 19:07:58 +00:00
allow US state name abbreviations at beginning of search term
fixes https://trac.openstreetmap.org/ticket/5136
This commit is contained in:
@@ -483,9 +483,9 @@
|
||||
// Conflicts between US state abreviations and various words for 'the' in different languages
|
||||
if (isset($this->aLangPrefOrder['name:en']))
|
||||
{
|
||||
$sQuery = preg_replace('/,\s*il\s*(,|$)/',', illinois\1', $sQuery);
|
||||
$sQuery = preg_replace('/,\s*al\s*(,|$)/',', alabama\1', $sQuery);
|
||||
$sQuery = preg_replace('/,\s*la\s*(,|$)/',', louisiana\1', $sQuery);
|
||||
$sQuery = preg_replace('/(^|,)\s*il\s*(,|$)/','\1illinois\2', $sQuery);
|
||||
$sQuery = preg_replace('/(^|,)\s*al\s*(,|$)/','\1alabama\2', $sQuery);
|
||||
$sQuery = preg_replace('/(^|,)\s*la\s*(,|$)/','\1louisiana\2', $sQuery);
|
||||
}
|
||||
|
||||
// View Box SQL
|
||||
|
||||
Reference in New Issue
Block a user