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

Don't match end of line

You can't hafe EOL multiple times on the same line...
上级 5e2dda9e
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册