Skip to content

Commit b9c7f48

Browse files
committed
WID-588 - Improve autocomplete results for provinces
1 parent 2c8d81f commit b9c7f48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Widget/RegionService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function getAutocompletResults($searchString, $language = 'nl')
5050
$compareString = strtolower($translatedRegion);
5151
// This is done to find cities & towns with short names which also match lots of other cities & towns
5252
// e.g., Zele or Egem
53-
if (strpos($compareString, $searchString) === 0) {
53+
if (strpos($compareString, $searchString) !== false) {
5454
$matches[$region->key] = $translatedRegion;
5555
}
5656
// This is done to add the submunicipalities when searching for a municipality.

0 commit comments

Comments
 (0)