Skip to content

Commit

Permalink
fix: jq query string format issue - missing '|' when reformatting
Browse files Browse the repository at this point in the history
Signed-off-by: haihongren <[email protected]>
  • Loading branch information
haihongren committed Mar 2, 2023
1 parent 5df283b commit e097766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/processor/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func runJq(dataSets interface{}, api load.API) []interface{} {
if api.Jq == "." {
api.Jq = ".[0]"
} else {
api.Jq = fmt.Sprintf(".[0]%v", api.Jq)
api.Jq = fmt.Sprintf(".[0]|%v", api.Jq)
}
}

Expand Down

0 comments on commit e097766

Please sign in to comment.