You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I was dealing with conditions involving 'in', I found that the results were not as expected.
I suspect that during the check for whether an element is contained in an array, the ToString method converted the array into a string type, and then it was processed using string methods.
@fivesmallq Good catch, thanks! It was correctly identifying both cases as not having an actual array value, but only did a null check on the value prior to comparison which meant that an empty string value would pass and would then be found within the subsequent string comparison. Should be fixed with the PR above.
version: growthbook-c-sharp 1.0.0
When I was dealing with conditions involving 'in', I found that the results were not as expected.
I suspect that during the check for whether an element is contained in an array, the ToString method converted the array into a string type, and then it was processed using string methods.
see different:
growthbook-c-sharp/GrowthBook/Providers/ConditionEvaluationProvider.cs
Line 391 in 57b6b0b
growthbook-c-sharp/GrowthBook/Utilities.cs
Line 388 in 70ea9f4
test code:
The text was updated successfully, but these errors were encountered: