From 315713ff9a00cf1c942d2c73ecae54571f29acd5 Mon Sep 17 00:00:00 2001 From: Marc Tobias Metten Date: Wed, 7 Feb 2018 00:48:18 +0100 Subject: [PATCH] make sure Illinois,Alabama,Louisiana state code special handling is case insensitive --- lib/Geocode.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Geocode.php b/lib/Geocode.php index 6c5fb23e..b2eee7ba 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -535,9 +535,9 @@ class Geocode // 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*(,|$)/', '\1illinois\2', $sQuery); - $sQuery = preg_replace('/(^|,)\s*al\s*(,|$)/', '\1alabama\2', $sQuery); - $sQuery = preg_replace('/(^|,)\s*la\s*(,|$)/', '\1louisiana\2', $sQuery); + $sQuery = preg_replace('/(^|,)\s*il\s*(,|$)/i', '\1illinois\2', $sQuery); + $sQuery = preg_replace('/(^|,)\s*al\s*(,|$)/i', '\1alabama\2', $sQuery); + $sQuery = preg_replace('/(^|,)\s*la\s*(,|$)/i', '\1louisiana\2', $sQuery); } // Do we have anything that looks like a lat/lon pair? -- 2.39.5