Skip to content

Commit

Permalink
Merge pull request #2916 from uchajk/master
Browse files Browse the repository at this point in the history
fix: case insensitive starts with search #2917
  • Loading branch information
yajra authored Dec 6, 2022
2 parents 7917f7a + 608e83c commit 68fb2a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/QueryDataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,14 +445,14 @@ protected function addTablePrefix($query, string $column): string
*/
protected function prepareKeyword(string $keyword): string
{
if ($this->config->isStartsWithSearch()) {
return "$keyword%";
}

if ($this->config->isCaseInsensitive()) {
$keyword = Str::lower($keyword);
}

if ($this->config->isStartsWithSearch()) {
return "$keyword%";
}

if ($this->config->isWildcard()) {
$keyword = Helper::wildcardLikeString($keyword);
}
Expand Down

0 comments on commit 68fb2a6

Please sign in to comment.