diff --git a/configcatclient/rolloutevaluator.py b/configcatclient/rolloutevaluator.py index 25dcb7a..587fefd 100644 --- a/configcatclient/rolloutevaluator.py +++ b/configcatclient/rolloutevaluator.py @@ -609,11 +609,11 @@ def _evaluate_comparison_rule_condition(self, comparison_rule, context, context_ return True, error # IS ONE OF (hashed) elif comparator == 16: - if sha256(user_value, salt, context_salt) in [x.strip() for x in comparison_value]: + if sha256(user_value, salt, context_salt) in comparison_value: return True, error # IS NOT ONE OF (hashed) elif comparator == 17: - if sha256(user_value, salt, context_salt) not in [x.strip() for x in comparison_value]: + if sha256(user_value, salt, context_salt) not in comparison_value: return True, error # BEFORE, AFTER (UTC datetime) elif 18 <= comparator <= 19: