mirror of
https://git.ferricyanide.solutions/A_D/irc-webhooks.git
synced 2026-03-17 16:17:21 +01:00
made sure to strip carriage returns from comment bodies
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user