From 959ee10b250169808a28b6511b85c54c0c503313 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Si=C3=B4n=20le=20Roux?= Date: Sat, 19 Oct 2019 00:15:22 +0200 Subject: [PATCH] Don't match end of line You can't hafe EOL multiple times on the same line... --- commands/pull_request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/pull_request.go b/commands/pull_request.go index da613c5b..6216d659 100644 --- a/commands/pull_request.go +++ b/commands/pull_request.go @@ -286,7 +286,7 @@ of text is the title and the rest is the description.`, fullBase, fullHead)) message, err = git.Show(commits[0]) utils.Check(err) - re := regexp.MustCompile(`\n(Co-authored|Signed-off)-by:\s[^\n]*$`) + re := regexp.MustCompile(`\n(Co-authored|Signed-off)-by:\s[^\n]*`) message = re.ReplaceAllString(message, "") } else if len(commits) > 1 { commitLogs, err := git.Log(baseTracking, headForMessage) -- GitLab