Skip to content

Commit

Permalink
IBM: Make filtering to work as a full matching
Browse files Browse the repository at this point in the history
  • Loading branch information
ish-hcc committed Feb 23, 2024
1 parent aced0c2 commit beb4988
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func isPicked(structVal any, fields []string, filterList []irs.KeyValue) bool {
fieldValue := reflect.Indirect(val).FieldByName(field).String()
fieldValueToLower := strings.ToLower(fieldValue)
valueToLower := strings.ToLower(filter.Value)
if strings.Contains(fieldValueToLower, valueToLower) {
if fieldValueToLower == valueToLower {
return true
}
}
Expand Down

0 comments on commit beb4988

Please sign in to comment.