Skip to content

Commit

Permalink
docs: Fix typo in charAt example (#1606)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Haines <haines@cerbos.dev>
  • Loading branch information
haines committed May 31, 2023
1 parent ded521c commit cb892e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/modules/policies/pages/conditions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ NOTE: The IP address functions are Cerbos-specific extensions to CEL.
| Function | Description | Example
| base64.encode | Encode as base64 | base64.encode(bytes("hello")) == "aGVsbG8="
| base64.decode | Decode base64 | base64.decode("aGVsbG8=") == bytes("hello")
| charAt | Get the character at given index | R.attr.department.chartAt(1) == 'a'
| charAt | Get the character at given index | R.attr.department.charAt(1) == 'a'
| contains | Check whether a string contains the given substring | R.attr.department.contains("arket")
| endsWith | Check whether a string has the given suffix | R.attr.department.endsWith("ing")
| format | Format a string with the given arguments | "department_%s_%d".format(["marketing", 1])
Expand Down

0 comments on commit cb892e7

Please sign in to comment.