You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
|`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. |
134
134
|`lowercase( s string )`|`string`| Returns `s` with all uppercase characters replaced with their lowercase equivalent. |
135
135
|`uppercase( s string )`|`string`| Returns `s` with all lowercase characters replaced with their uppercase equivalent. |
136
136
|`snakecase( s string )`|`string`| Returns `s` with all space characters replaced by underscores. For example, `kebabcase("test string")` returns `test_string`. |
0 commit comments