Skip to content

Commit

Permalink
split: redirects should only be filtered for pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Aug 11, 2023
1 parent 517e083 commit dc520ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion action.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,12 @@ func (a Action) split(pipelines bool) Action {
}

originalValue := c.Value
context := NewContext(tokens.FilterRedirects().Words().Strings()...)
var context Context
if pipelines {
context = NewContext(tokens.FilterRedirects().Words().Strings()...)
} else {
context = NewContext(tokens.Words().Strings()...)
}
prefix := originalValue[:tokens.Words().CurrentToken().Index]
c.Args = context.Args
c.Parts = []string{}
Expand Down

0 comments on commit dc520ff

Please sign in to comment.