Skip to content

Commit 5c5b526

Browse files
authored
[Ruleset Engine] Functions: Add url_decode() example (#19512)
1 parent e9d5309 commit 5c5b526

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,9 @@ url_decode("%2520", "r") will return " "
347347
348348
// Using url_decode() with the any() function:
349349
any(url_decode(http.request.body.form.values[*])[*] contains "an xss attack")
350+
351+
// Using the u option to match a specific alphabet
352+
url_decode(http.request.uri.path) matches "(?u)\p{Hangul}+"
350353
```
351354

352355
### `uuidv4`

0 commit comments

Comments
 (0)