Skip to content

Commit

Permalink
More clear solutino:
Browse files Browse the repository at this point in the history
  • Loading branch information
marccampbell committed Mar 7, 2020
1 parent ff627dc commit 6563290
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/analyze/text_analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,19 +198,19 @@ func compareRegex(conditional string, foundMatches map[string]string) (bool, err
case "==":
fallthrough
case "===":
return lookForValueInt == foundValueInt, nil
return foundValueInt == lookForValueInt, nil

case "<":
return lookForValueInt > foundValueInt, nil
return foundValueInt < lookForValueInt, nil

case ">":
return lookForValueInt > foundValueInt, nil
return foundValueInt > lookForValueInt, nil

case "<=":
return lookForValueInt >= foundValueInt, nil
return foundValueInt <= lookForValueInt, nil

case ">=":
return lookForValueInt <= foundValueInt, nil
return foundValueInt >= lookForValueInt, nil
}
} else {
// all we can support is "=" and "==" and "===" for now
Expand Down

0 comments on commit 6563290

Please sign in to comment.