Skip to content

Commit

Permalink
Fix for regexp search case sensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed May 12, 2022
1 parent 66d54d1 commit a9db19f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions modules/ldapquery/queryparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,9 +448,6 @@ valueloop:
if strings.HasPrefix(value, "/") && strings.HasSuffix(value, "/") {
// regexp magic
pattern := value[1 : len(value)-1]
if !casesensitive {
pattern = strings.ToLower(pattern)
}
r, err := regexp.Compile(pattern)
if err != nil {
return nil, nil, err
Expand Down

0 comments on commit a9db19f

Please sign in to comment.