Add functions in transform plugin to cover modify plugin - #1003
Open
timggggggg wants to merge 1 commit into
Open
Add functions in transform plugin to cover modify plugin#1003timggggggg wants to merge 1 commit into
timggggggg wants to merge 1 commit into
Conversation
kirillov6
approved these changes
Aug 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Functions
Six new functions and one new option on
capture:find_allfind_all(value, pattern, group: 0, limit: -1)— every match as an arrayjoinjoin(value, separator)— array of strings into one stringtrimtrim(value, cutset)— strip characters from both endstrim_lefttrim_left(value, cutset)— strip from the starttrim_righttrim_right(value, cutset)— strip from the endsliceslice(value, start, end: null)— substring by character, negative offsetscapturenumeric_groups: false— also key groups by index:"0","1", …New files
plugin/action/transform/stdlib/find_all.go+find_all_test.goplugin/action/transform/stdlib/join.go+join_test.goplugin/action/transform/stdlib/trim.go+trim_test.goplugin/action/transform/stdlib/slice.go+slice_test.goModified files
plugin/action/transform/stdlib/capture.go—numeric_groupsoptionplugin/action/transform/stdlib/registry.go— six registrationsplugin/action/transform/stdlib/capture_test.go—numeric_groupstestsplugin/action/transform/stdlib/resolve_test.go—callFnhelper, binds argumentsthrough the compiled signature so named defaults apply
plugin/action/transform/transform.go— docs for the new functionsplugin/action/transform/README.md— regeneratedplugin/action/transform/doc_examples_test.go— compile-checks the new doc snippetsFixes #1000