Skip to content

Commit 1bee2a7

Browse files
committed
feat: shrink repeated patterns
1 parent b2a05f1 commit 1bee2a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

chat/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func AskCustom[T any](grp int64, f func(int, string) T) []T {
4747
}
4848

4949
func Sanitize(msg string) string {
50-
_, msg, _ = strings.Cut(msg, "\n")
50+
msg, _, _ = strings.Cut(msg, "\n")
5151
msg = strings.TrimSpace(msg)
5252
i := strings.LastIndex(msg, "】")
5353
if i > 0 {

0 commit comments

Comments
 (0)