Added a join lines with space
This commit is contained in:
parent
aa680eea69
commit
61dae0ac2d
|
|
@ -75,6 +75,12 @@ var TextFilters = map[string]TextProcessor{
|
||||||
return TextFilterResponse{Output: strings.Replace(input, "\n", ",", -1)}, nil
|
return TextFilterResponse{Output: strings.Replace(input, "\n", ",", -1)}, nil
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
"join-lines-with-spaces": {
|
||||||
|
Label: "Lines: Join with Spaces",
|
||||||
|
Filter: func(ctx context.Context, input string) (resp TextFilterResponse, err error) {
|
||||||
|
return TextFilterResponse{Output: strings.Replace(input, "\n", " ", -1)}, nil
|
||||||
|
},
|
||||||
|
},
|
||||||
"split-lines-on-commas": {
|
"split-lines-on-commas": {
|
||||||
Label: "Lines: Split on Commas",
|
Label: "Lines: Split on Commas",
|
||||||
Filter: func(ctx context.Context, input string) (resp TextFilterResponse, err error) {
|
Filter: func(ctx context.Context, input string) (resp TextFilterResponse, err error) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue