From feb4cb5c717fa215d8e3c180600ae4a8c4a64d81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Si=C3=B4n=20le=20Roux?= Date: Fri, 18 Oct 2019 23:47:58 +0200 Subject: [PATCH] Try with less escaping --- 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 34e2064e..2c835565 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.*$`) + re := regexp.MustCompile(`\n(Co-authored|Signed-off)-by:\s.*$`) message = re.ReplaceAllString(message, "") } else if len(commits) > 1 { commitLogs, err := git.Log(baseTracking, headForMessage) -- GitLab