Skip to content

Commit

Permalink
doc: updated MultiPartsP
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Aug 27, 2023
1 parent 84f9af4 commit c376dd6
Show file tree
Hide file tree
Showing 3 changed files with 155 additions and 108 deletions.
2 changes: 0 additions & 2 deletions action.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ func (a Action) MultiParts(dividers ...string) Action {

// MultiPartsP is like MultiParts but with placeholders
func (a Action) MultiPartsP(delimiter string, pattern string, f func(placeholder string, matches map[string]string) Action) Action {
// TODO add delimiter as suffix for proper nospace handling (some values/placeholders might appear with and without suffix)
return ActionCallback(func(c Context) Action {
invoked := a.Invoke(c)

Expand Down Expand Up @@ -211,7 +210,6 @@ func (a Action) MultiPartsP(delimiter string, pattern string, f func(placeholder
}
}

// TODO verify
a := Batch(actions...).ToA()
a.meta.Merge(invoked.meta)
return a
Expand Down
Loading

0 comments on commit c376dd6

Please sign in to comment.