Skip to content

Commit

Permalink
fix json escape (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
suchen-sci authored Aug 30, 2024
1 parent b9f837e commit d287afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func ToSlack(r probe.Result) string {
}
`
rtt := r.RoundTripTime.Round(time.Millisecond)
body := fmt.Sprintf("*%s*\\n>%s %s - ⏱ %s\n>%s",
body := fmt.Sprintf("*%s*\\n>%s %s - ⏱ %s\\n>%s",
r.Title(), r.Status.Emoji(), r.Endpoint, rtt, JSONEscape(r.Message))
context := SlackTimeFormation(r.StartTime, " probed at ", global.GetTimeFormat())
summary := fmt.Sprintf("%s %s - %s", r.Title(), r.Status.Emoji(), JSONEscape(r.Message))
Expand Down

0 comments on commit d287afe

Please sign in to comment.