mirror of
https://git.ferricyanide.solutions/A_D/irc-webhooks.git
synced 2024-12-22 19:37:04 +00:00
made sure to strip carriage returns from comment bodies
This commit is contained in:
parent
19f178b03f
commit
76a0254a1d
@ -114,6 +114,7 @@ func handleIssueComment(data []byte) {
|
|||||||
)
|
)
|
||||||
|
|
||||||
fmt.Printf(INDENT + "---\n")
|
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)
|
fmt.Printf(strings.Repeat(INDENT, 2) + msg)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user