From fa5ca6e4789e00b4e2c67c896a26986b3c369149 Mon Sep 17 00:00:00 2001 From: Gerrit91 Date: Tue, 27 Feb 2024 14:55:50 +0100 Subject: [PATCH] Windows line feeds. --- pkg/webhooks/github/actions/issues_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/webhooks/github/actions/issues_handler.go b/pkg/webhooks/github/actions/issues_handler.go index 1c90325..6866b52 100644 --- a/pkg/webhooks/github/actions/issues_handler.go +++ b/pkg/webhooks/github/actions/issues_handler.go @@ -182,7 +182,7 @@ func (r *IssuesAction) tag(ctx context.Context, p *IssuesActionParams, args []st } func searchForCommandInBody(comment string, want IssueCommentCommand) ([]string, bool) { - for _, line := range strings.Split(comment, "\n") { + for _, line := range strings.Split(strings.ReplaceAll(comment, "\r\n", "\n"), "\n") { line = strings.TrimSpace(line) fields := strings.Fields(line)