Fix inverted functionality of --case-sensitive flag

This commit is contained in:
Seednode 2023-09-25 17:08:40 -05:00
parent 55953c649b
commit 271714f1de
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ import (
) )
const ( const (
ReleaseVersion string = "0.92.0" ReleaseVersion string = "0.92.1"
) )
var ( var (

View File

@ -49,9 +49,9 @@ func splitQueryParams(query string, regexes *regexes) []string {
for i := 0; i < len(params); i++ { for i := 0; i < len(params); i++ {
switch { switch {
case regexes.alphanumeric.MatchString(params[i]) && CaseSensitive: case regexes.alphanumeric.MatchString(params[i]) && CaseSensitive:
results = append(results, strings.ToLower(params[i]))
case regexes.alphanumeric.MatchString(params[i]):
results = append(results, params[i]) results = append(results, params[i])
case regexes.alphanumeric.MatchString(params[i]):
results = append(results, strings.ToLower(params[i]))
} }
} }