Skip to content

Commit

Permalink
fix: applications cannot be searched by keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
TiSiE committed Aug 2, 2021
1 parent cdb2f46 commit 6292f69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function createQuery($params, $queryBuilder)
$searchPatterns = array();

foreach (explode(' ', $search) as $searchItem) {
$searchPatterns[] = new Regex('/^' . $searchItem . '/');
$searchPatterns[] = new Regex('^' . $searchItem, 'i');
}
$queryBuilder->field('keywords')->all($searchPatterns);
}
Expand Down

0 comments on commit 6292f69

Please sign in to comment.