Skip to content

Commit a40ed29

Browse files
update length() description
Per this JIRA, https://segment.atlassian.net/browse/PROT-4223, the length() method isn't meant to be used with JSON and doing so can result in Destination Filters not working. This update clarifies that.
1 parent 7bd1594 commit a40ed29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/public-api/fql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ You can use parentheses to group subexpressions for more complex "and / or" logi
130130
| Function | Return Type | Result |
131131
| ----------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
132132
| `contains( s string, sub string )` | `bool` | Returns `true` if string `s` contains string `sub`. |
133-
| `length( list or string )` | `number` | Returns the number of elements in a list or number of bytes (not necessarily characters) in a string. For example, `a` is 1 byte and`` is 3 bytes long. |
133+
| `length( list or string )` | `number` | Returns the number of elements in a list or number of bytes (not necessarily characters) in a string. For example, `a` is 1 byte and`` is 3 bytes long. Please note that this function is not meant to be used with JSON as the argument and that doing so may result in unexpected consequences. |
134134
| `lowercase( s string )` | `string` | Returns `s` with all uppercase characters replaced with their lowercase equivalent. |
135135
| `uppercase( s string )` | `string` | Returns `s` with all lowercase characters replaced with their uppercase equivalent. |
136136
| `snakecase( s string )` | `string` | Returns `s` with all space characters replaced by underscores. For example, `kebabcase("test string")` returns `test_string`. |

0 commit comments

Comments
 (0)