Skip to content

Commit 3282686

Browse files
author
mritd
committed
feat(Prompt): fix Prompt space
fix Prompt space Signed-off-by: mritd <[email protected]>
1 parent 2794ae1 commit 3282686

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/commit/ci.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func InputScope() string {
8080
}
8181
}, "Scope:")
8282

83-
return p.Run()
83+
return strings.TrimSpace(p.Run())
8484

8585
}
8686

@@ -97,7 +97,7 @@ func InputSubject() string {
9797
}
9898
}, "Subject:")
9999

100-
return p.Run()
100+
return strings.TrimSpace(p.Run())
101101
}
102102

103103
// 输入完整提交信息
@@ -107,7 +107,7 @@ func InputBody() string {
107107
return nil
108108
}, "Body:")
109109

110-
body := p.Run()
110+
body := strings.TrimSpace(p.Run())
111111
if body == "big" {
112112
return util.OSEditInput()
113113
}
@@ -122,7 +122,7 @@ func InputFooter() string {
122122
return nil
123123
}, "Footer:")
124124

125-
return p.Run()
125+
return strings.TrimSpace(p.Run())
126126
}
127127

128128
// 生成 SOB 签名

0 commit comments

Comments
 (0)