Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repository = "https://github.com/configcat/rust-sdk"
documentation = "https://configcat.com/docs/sdk-reference/rust"
keywords = ["configcat", "feature-flag", "feature-toggle"]
license = "MIT"
version = "0.1.5"
version = "0.1.6"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 ConfigCat
Copyright (c) 2026 ConfigCat

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
9 changes: 5 additions & 4 deletions src/eval/evaluator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -958,10 +958,11 @@ fn eval_array_contains(
return Success(needs_true);
}
}
}
for comp_item in comp_val {
if user_item == comp_item {
return Success(needs_true);
} else {
for comp_item in comp_val {
if user_item == comp_item {
return Success(needs_true);
}
}
}
}
Expand Down
1 change: 1 addition & 0 deletions tests/data/testmatrix_comparators_v6.csv
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ admin@configcat.com;admin@configcat.com;France;["Read", "Write", "execute"];Fal
admin@configcat.com;admin@configcat.com;France;["Read", "Write", "eXecute"];False;Cat;Cat;Dog;Dog;Dog;Cat;Dog;Cat;Cat;Dog;Dog;Cat;Falcon;NotFound;Horse;Cat;Dog;Cat;Cat;Dog;Dog;Cat;Cat;Dog;Dog;Cat;Cat;Dog;Dog
user@configcat.com;user@configcat.com;Greece;["","execute"];False;Cat;Cat;Dog;Dog;Cat;Dog;Dog;Cat;Cat;Dog;Cat;Dog;Horse;NotFound;Horse;Cat;Dog;Cat;Cat;Dog;Dog;Cat;Cat;Dog;Dog;Dog;Dog;Cat;Cat
user@configcat.com;user@configcat.com;Monaco;,null, ,,nil, None;False;Cat;Cat;Dog;Dog;Cat;Dog;Dog;Cat;Cat;Cat;Cat;Cat;Falcon;NotFound;Horse;Cat;Dog;Cat;Cat;Dog;Dog;Cat;Cat;Dog;Dog;Cat;Cat;Cat;Cat
user@configcat.com;user@configcat.com;Greece;[];False;Cat;Cat;Dog;Dog;Cat;Dog;Dog;Cat;Cat;Dog;Cat;Dog;Falcon;NotFound;Horse;Cat;Dog;Cat;Cat;Dog;Dog;Cat;Cat;Dog;Dog;Cat;Cat;Dog;Dog
Loading