Fix inverted functionality of --case-sensitive flag
This commit is contained in:
parent
55953c649b
commit
271714f1de
|
@ -11,7 +11,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
ReleaseVersion string = "0.92.0"
|
ReleaseVersion string = "0.92.1"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -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]))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue