made sure to strip carriage returns from comment bodies

This commit is contained in:
A_D 2018-11-17 16:55:50 +02:00
parent 19f178b03f
commit 76a0254a1d
No known key found for this signature in database
GPG Key ID: C242F3DD220FA945

View File

@ -114,6 +114,7 @@ func handleIssueComment(data []byte) {
)
fmt.Printf(INDENT + "---\n")
msg := strings.Replace(action.Comment.Body, "\n", strings.Repeat(INDENT, 2) + "\n", -1)
stripped := strings.Replace(action.Comment.Body, "\r", "", -1)
msg := strings.Replace(stripped, "\n", strings.Repeat(INDENT, 2) + "\n", -1)
fmt.Printf(strings.Repeat(INDENT, 2) + msg)
}