Skip to content

Commit

Permalink
Windows line feeds.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Feb 27, 2024
1 parent eb2e20a commit fa5ca6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webhooks/github/actions/issues_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fa5ca6e

Please sign in to comment.