提交 feb4cb5c 编写于 作者: S Siôn le Roux

Try with less escaping

上级 f8c531a8
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册