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
{{ message }}
This repository was archived by the owner on Sep 2, 2025. It is now read-only.
|This example overrides the default return values and customizes them.
251
251
252
252
* - ``encodeString``
253
253
- Escapes quote and newline characters in a string.
254
-
- {{{encodeString messageTitle}}}
254
+
- ``{{{encodeString messageTitle}}}``
255
255
256
256
* - ``notEmpty``
257
257
- Adds text to a payload only if the value specified is not empty map. This function only works with the ``inputs`` and ``dimensions`` variables.
258
258
- | This example only prints if dimensions is not empty: {{#notEmpty dimensions}}
259
-
|{{/notEmpty}}
259
+
|``{{/notEmpty}}``
260
260
261
261
* - ``json``
262
262
- Converts a string to a raw JSON value. Use this function to turn text from a detector into a JSON payload that can be evaluated in third-party integrations.
263
-
- {{{json dimensions}}}
263
+
- ``{{{json dimensions}}}``
264
264
265
265
* - ``substring``
266
266
- Returns a new character sequence that is a subsequence of this sequence. The subsequence starts with the character at the specified index and ends with the character at the second to last index.
267
-
- | {{substring var 1}}
268
-
|{{substring var 1 3}}
267
+
- | ``{{substring var 1}}``
268
+
|``{{substring var 1 3}}``
269
269
270
270
* - ``abbreviate``
271
271
- Truncates a string if it is longer than the specified number of characters. Minimum abbreviation width is 4.
272
-
- {{abbreviate long_str 5}}
272
+
- ``{{abbreviate long_str 5}}``
273
273
274
274
* - ``replace``
275
275
- Replaces each substring of this string that matches the literal target sequence with the specified literal replacement sequence.
0 commit comments