Skip to content

Commit 7206e1a

Browse files
zyxkadhhhapz
authored andcommitted
make message split only happens at new line
1 parent dac02ec commit 7206e1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

announcements/announcements.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func buildContents(maxLen int, subject, body string) (contents []string) {
156156
for max < len(body) {
157157
body = strings.TrimSpace(body)
158158

159-
i := strings.LastIndexAny(body[:max], "\n.!")
159+
i := strings.LastIndex(body[:max], "\n")
160160
// there are no new lines in the first max len chars
161161
if i == -1 {
162162
i = max - 1

0 commit comments

Comments
 (0)