From: Brian Quinion Date: Sat, 2 Apr 2011 15:07:48 +0000 (+0000) Subject: fallback housenumber for items containing a number - not just number only X-Git-Tag: v2.0.0~153 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/5202e860229ff05c7f03c0e2b48f731801d1bf7a?hp=b67b60f7d9cc7dfa6a079ef3c4496f7bc9c22f24 fallback housenumber for items containing a number - not just number only --- diff --git a/website/search.php b/website/search.php index 6596fca4..6a997acb 100755 --- a/website/search.php +++ b/website/search.php @@ -816,7 +816,7 @@ } // Fallback to the road - if (!sizeof($aPlaceIDs) && preg_match('/^[0-9]+$/', $aSearch['sHouseNumber'])) + if (!sizeof($aPlaceIDs) && preg_match('/[0-9]+/', $aSearch['sHouseNumber'])) { $aPlaceIDs = $aRoadPlaceIDs; }