Skip to content

Commit

Permalink
feat(tsl): make CONTAINS work with string values too!
Browse files Browse the repository at this point in the history
  • Loading branch information
iGoodie committed Sep 13, 2020
1 parent e804b57 commit ca8cb8b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ public ContainsComparator(String rightHandRaw) {
public boolean compare(Object leftHand) {
if (leftHand instanceof Set)
return ((Set) leftHand).contains(value.toLowerCase());
if (leftHand instanceof String)
return ((String) leftHand).contains(value);

return false;
}
Expand Down

0 comments on commit ca8cb8b

Please sign in to comment.