Skip to content
Snippets Groups Projects
Commit 7b61cf60 authored by Philippe ALEXANDRE's avatar Philippe ALEXANDRE
Browse files

Add strings.ToLower ...

parent c4e7487b
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,7 @@ func (t *testItem) execute(s string) (result bool) {
switch t.Compare.Op {
case "eq":
value := strings.ToLower(flagVal)
// Do case insensitive comparaison for booleans ...
if value == "false" || value == "true" {
result = value == t.Compare.Value
......@@ -88,6 +89,7 @@ func (t *testItem) execute(s string) (result bool) {
}
case "noteq":
value := strings.ToLower(flagVal)
// Do case insensitive comparaison for booleans ...
if value == "false" || value == "true" {
result = !(value == t.Compare.Value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment