Skip to content

Commit

Permalink
Fix handling of case insensitive searches (CO-1777)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Jul 23, 2019
1 parent 0186fca commit 7498f51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/Lib/Match/MatchService.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ protected function search(string $mode,
// If the attribute is case insensitive, we insert LOWER clauses
if(!$ruleattr->attribute->case_sensitive) {
$colclause = "LOWER(" . $colclause . ")";
$val = strtolower($val);
}

// If the attribute is alphanumeric only, we strip out non-alphanumeric characters
Expand Down

0 comments on commit 7498f51

Please sign in to comment.