Skip to content

Commit 25034a8

Browse files
authored
[Ruleset Engine] Update operators.mdx (#17733)
case sensitive >> case-sensitive case insensitive >> case-insensitive
1 parent 8406a96 commit 25034a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/docs/ruleset-engine/rules-language/operators.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ http.request.uri.path ends_with ".html"
179179

180180
### Comparing string values
181181

182-
String comparison in rule expressions is case sensitive. To account for possible variations of string capitalization in an expression, you can use the [`lower()`](/ruleset-engine/rules-language/functions/#lower) function and compare the result with a lowercased string, like in the following example:
182+
String comparison in rule expressions is case-sensitive. To account for possible variations of string capitalization in an expression, you can use the [`lower()`](/ruleset-engine/rules-language/functions/#lower) function and compare the result with a lowercased string, like in the following example:
183183

184184
```txt
185185
lower(http.request.uri.path) contains "/wp-login.php"
@@ -191,7 +191,7 @@ Wildcard matching is only supported with the `wildcard` and `strict wildcard` op
191191

192192
### Wildcard matching
193193

194-
The `wildcard` operator performs a case-insensitive match between a field value and a literal string containing zero or more `*` metacharacters. Each `*` metacharacter represents zero or more characters. The `strict wildcard` operator performs a similar match, but is case sensitive.
194+
The `wildcard` operator performs a case-insensitive match between a field value and a literal string containing zero or more `*` metacharacters. Each `*` metacharacter represents zero or more characters. The `strict wildcard` operator performs a similar match, but is case-sensitive.
195195

196196
When using the `wildcard`/`strict wildcard` operator, the entire field value must match the literal string with wildcards (the literal after the operator).
197197

@@ -243,7 +243,7 @@ http.request.full_uri wildcard "*.example.com/*" or http.request.full_uri wildca
243243

244244
</Details>
245245

246-
The matching algorithm used by the `wildcard` operator is case insensitive. To perform case-sensitive wildcard matching, use the `strict wildcard` operator.
246+
The matching algorithm used by the `wildcard` operator is case-insensitive. To perform case-sensitive wildcard matching, use the `strict wildcard` operator.
247247

248248
To enter a literal `*` character in a literal string with wildcards you must escape it using `\*`. Additionally, you must also escape `\` using `\\`. Two unescaped `*` characters in a row (`**`) in a wildcard literal string are considered invalid and cannot be used. If you need to perform character escaping, it is recommended that you use the [raw string syntax](/ruleset-engine/rules-language/values/#raw-string-syntax) to specify a literal string with wildcards.
249249

0 commit comments

Comments
 (0)