mirror of
https://github.com/go-gitea/gitea.git
synced 2026-06-22 04:43:43 +00:00
add more edge case for git commit message trailer
This commit is contained in:
@@ -26,6 +26,7 @@ func TestCommitMessageTrailer(t *testing.T) {
|
||||
{"a", "a", "", ""},
|
||||
{"a\n\nk", "a\n\nk", "", ""},
|
||||
{"a\n\nk:v", "a", "\n\n", "k:v"},
|
||||
{"a\n\nk:v\n\n", "a", "\n\n", "k:v\n\n"},
|
||||
{"a\n--\nk:v", "a\n--\nk:v", "", ""},
|
||||
{"a\n---\nk:v", "a", "\n---\n", "k:v"},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user