Skip to content

Commit

Permalink
curl: trim $ prefix when decoding ANSI C quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jul 19, 2024
1 parent dc87d07 commit 20a6073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion curl/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func Parse(curl string) (*Parsed, error) {
i++
body = parts[i]
if strings.HasPrefix(body, "$") {
body = ansiCQuoteReplacer.Replace(body)
body = ansiCQuoteReplacer.Replace(body[1:])
}
case "-X":
i++
Expand Down

0 comments on commit 20a6073

Please sign in to comment.