Skip to content

Commit 62e7229

Browse files
Fix regex (#88)
1 parent d6d35c1 commit 62e7229

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/statsig/sdk/Evaluator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ internal class Evaluator {
479479
)
480480
return ConfigEvaluation(
481481
fetchFromServer = false,
482-
booleanValue = strValue.matches(Regex(condition.targetValue as String))
482+
booleanValue = Regex(condition.targetValue as String).containsMatchIn(strValue)
483483
)
484484
}
485485
"eq" -> {

0 commit comments

Comments
 (0)