This commit is contained in:
parent
eda11309bc
commit
e679b1607d
2 changed files with 27 additions and 3 deletions
|
|
@ -69,6 +69,18 @@ var TextFilters = map[string]TextProcessor{
|
|||
return TextFilterResponse{Output: strings.Replace(input, ",", "\n", -1)}, nil
|
||||
},
|
||||
},
|
||||
"join-lines-with-semicolons": {
|
||||
Label: "Lines: Join with Semicolons",
|
||||
Filter: func(ctx context.Context, input string) (resp TextFilterResponse, err error) {
|
||||
return TextFilterResponse{Output: strings.Replace(input, "\n", ";", -1)}, nil
|
||||
},
|
||||
},
|
||||
"split-lines-on-semicolon": {
|
||||
Label: "Lines: Split on Semicolons",
|
||||
Filter: func(ctx context.Context, input string) (resp TextFilterResponse, err error) {
|
||||
return TextFilterResponse{Output: strings.Replace(input, ";", "\n", -1)}, nil
|
||||
},
|
||||
},
|
||||
"trim-space": {
|
||||
Label: "Lines: Trim Spaces",
|
||||
Filter: func(ctx context.Context, input string) (resp TextFilterResponse, err error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue