package net.programmer.igoodie.twitchspawn.tslanguage.predicate;

import java.util.Set;

public class ContainsComparator extends TSLComparator {

    protected String value;

    public ContainsComparator(String rightHandRaw) {
        this.value = rightHandRaw.trim();
    }

    @Override
    public boolean compare(Object leftHand) {
        if (leftHand instanceof Set)
            return ((Set) leftHand).contains(value.toLowerCase());

        return false;
    }

}

@@ -433,16 +433,112 @@
 Case());
+%0A        if (leftHand instanceof String)%0A            return ((String) leftHand).contains(value);
 %0A%0A      

make CONTAINS work with string values too!