Skip to content

Commit

Permalink
FIX Match search terms at the start of a string (#957)
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz authored Feb 4, 2022
1 parent c0b87b0 commit c5eecbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controllers/ElementSiteTreeFilterSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected function applyDefaultFilters($query)

// Check whether the search term exists in the nested page content
$pageContent = $siteTree->getElementsForSearch();
return (bool) stripos($pageContent, $this->params['Term']) !== false;
return stripos($pageContent, $this->params['Term']) !== false;
});

if ($siteTrees->count()) {
Expand Down

0 comments on commit c5eecbf

Please sign in to comment.