Skip to content

Commit

Permalink
return after inspecting case insensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
uchajk committed Dec 6, 2022
1 parent 7917f7a commit 608e83c
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 608e83c

Please sign in to comment.