]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/search.php
fallback housenumber for items containing a number - not just number only
[nominatim.git] / website / search.php
index 6596fca4c77edb3008a8211fca3ab77d0297e00b..6a997acbfa7ddda08f8b4bdc303db1c486e1e744 100755 (executable)
                                                                }
 
                                                                // Fallback to the road
-                                                               if (!sizeof($aPlaceIDs) && preg_match('/^[0-9]+$/', $aSearch['sHouseNumber']))
+                                                               if (!sizeof($aPlaceIDs) && preg_match('/[0-9]+/', $aSearch['sHouseNumber']))
                                                                {
                                                                        $aPlaceIDs = $aRoadPlaceIDs;
                                                                }