From 3ea0104f73b3c5cd690e8d620fb4075ab7d03d55 Mon Sep 17 00:00:00 2001 From: Kiki-Y123 <109290423+Kiki-Y123@users.noreply.github.com> Date: Mon, 31 Mar 2025 09:33:45 +0100 Subject: [PATCH 1/2] Update operators.mdx added this:
4 All operators are case-sensitive unless explicitly stated as case-insensitive, such as the Wildcard operator mentioned above. --- src/content/docs/ruleset-engine/rules-language/operators.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/content/docs/ruleset-engine/rules-language/operators.mdx b/src/content/docs/ruleset-engine/rules-language/operators.mdx index de409ca150a8c0..f0c4cce9d848ff 100644 --- a/src/content/docs/ruleset-engine/rules-language/operators.mdx +++ b/src/content/docs/ruleset-engine/rules-language/operators.mdx @@ -182,6 +182,8 @@ The Rules language supports these comparison operators: 1 For more information, refer to [Wildcard matching](#wildcard-matching).
2 Access to the `matches` operator requires a Cloudflare Business or Enterprise plan. For more information, refer to [Regular expression matching](#regular-expression-matching).
3 Currently, not all Cloudflare products support lists in their expressions. For more information on lists, refer to [Inline lists](/ruleset-engine/rules-language/values/#inline-lists) and [Lists](/waf/tools/lists/). +
+4 All operators are case-sensitive unless explicitly stated as case-insensitive, such as the Wildcard operator mentioned above. :::caution Comparison operators entered using English notation (such as `eq`, `lt`, and `gt`) must be written in lowercase. From 83722f0d5addd2b779934c782e7f2ab906334a3d Mon Sep 17 00:00:00 2001 From: Pedro Sousa <680496+pedrosousa@users.noreply.github.com> Date: Fri, 16 May 2025 15:37:02 +0100 Subject: [PATCH 2/2] PCX review --- .../ruleset-engine/rules-language/operators.mdx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/content/docs/ruleset-engine/rules-language/operators.mdx b/src/content/docs/ruleset-engine/rules-language/operators.mdx index 155dce36f56693..670ac521283c2e 100644 --- a/src/content/docs/ruleset-engine/rules-language/operators.mdx +++ b/src/content/docs/ruleset-engine/rules-language/operators.mdx @@ -45,7 +45,7 @@ The Rules language supports these comparison operators: English C-like - String + String1 IP Number Example (operator in bold) @@ -130,7 +130,7 @@ The Rules language supports these comparison operators: - Wildcard1
(case-insensitive) + Wildcard
(case-insensitive) wildcard ✅ @@ -141,7 +141,7 @@ The Rules language supports these comparison operators: - Strict wildcard1
(case-sensitive) + Strict wildcard
(case-sensitive) strict wildcard ✅ @@ -152,7 +152,7 @@ The Rules language supports these comparison operators: - Matches
regex2 + Matches
regex
2 matches ~ ✅ @@ -179,11 +179,9 @@ The Rules language supports these comparison operators: {/* prettier-ignore */} -1 For more information, refer to [Wildcard matching](#wildcard-matching).
-2 Access to the `matches` operator requires a Cloudflare Business or Enterprise plan. For more information, refer to [Regular expression matching](#regular-expression-matching).
+1 All string operators are case-sensitive unless explicitly stated as case-insensitive, such as the `wildcard` operator.
+2 Access to the `matches` operator requires a Cloudflare Business or Enterprise plan.
3 Currently, not all Cloudflare products support lists in their expressions. For more information on lists, refer to [Inline lists](/ruleset-engine/rules-language/values/#inline-lists) and [Lists](/waf/tools/lists/). -
-4 All operators are case-sensitive unless explicitly stated as case-insensitive, such as the Wildcard operator mentioned above. :::caution Comparison operators entered using English notation (such as `eq`, `lt`, and `gt`) must be written in lowercase.