From 244cb62114716674a9764e183413a29dad708bcf Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Sat, 20 Dec 2025 11:17:34 -0600 Subject: [PATCH] add string.split processor --- src/content/docs/processors/string/split.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/content/docs/processors/string/split.md diff --git a/src/content/docs/processors/string/split.md b/src/content/docs/processors/string/split.md new file mode 100644 index 0000000..41d4e82 --- /dev/null +++ b/src/content/docs/processors/string/split.md @@ -0,0 +1,18 @@ +--- +title: String Split +sidebar: + order: 5 +--- +The `string.split` processor takes a string and turns it into an array of strings by splitting on `params.separator`. This processor will return an error if the message being processed is not a string. + +- **type**: `string.split` +- **params**: + - **pattern**: string to split incoming string on + +### Example +Split incoming string on `,` i.e `"one,two,three"` -> `["one","two","three"]` +``` +- type: string.split + params: + separator: "," +``` \ No newline at end of file