Skip to content

Commit

Permalink
docs: move string operator case sensitivity note to table
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheartman committed Mar 8, 2022
1 parent 774bed5 commit 39d01f4
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions website/docs/advanced/strategy-constraints.md
Expand Up @@ -117,21 +117,17 @@ Date and time operators only support single values.

### String operators

:::note Legacy note
For backwards compatibility reasons, `IN` and `NOT_IN` are always case-sensitive.
:::

String operators differ from the other categories in two different ways:
- all operators accept multiple values
- most operators also consider [letter case](https://en.wikipedia.org/wiki/Letter_case "letter case on Wikipedia") and can be set to be case-sensitive or case-insensitive

| Name | `true` if `<context-field>` ... | Available since |
|-------------------|------------------------------------------------|-----------------|
| `IN` | is **equal** to any of the provided values | v3.3 |
| `NOT_IN` | is **not equal** to any of the provided values | v3.3 |
| `STR_CONTAINS` | **contains** any of the provided strings | v4.9 |
| `STR_ENDS_WITH` | **ends** with any of the provided strings | v4.9 |
| `STR_STARTS_WITH` | **starts** with any of the provided strings | v4.9 |
| Name | `true` if `<context-field>` ... | Supports case-insensitivity | Available since |
|-------------------|------------------------------------------------|-----------------------------|-----------------|
| `IN` | is **equal** to any of the provided values | No | v3.3 |
| `NOT_IN` | is **not equal** to any of the provided values | No | v3.3 |
| `STR_CONTAINS` | **contains** any of the provided strings | Yes | v4.9 |
| `STR_ENDS_WITH` | **ends** with any of the provided strings | Yes | v4.9 |
| `STR_STARTS_WITH` | **starts** with any of the provided strings | Yes | v4.9 |


### Versioning (SemVer) operators
Expand Down

0 comments on commit 39d01f4

Please sign in to comment.