Refactor "string truncate" (#32984)

This commit is contained in:
wxiaoguang authored and GitHub committed 2024-12-26 11:56:03 +08:00
1 parent 594edad213
commit 9bfa9f450d
26 files changed
+199 -140

No files matched your search

+1 -1
View File
@@ -572,7 +572,7 @@ func NewPullRequest(ctx context.Context, repo *repo_model.Repository, issue *Iss
}
issue.Index = idx
issue.Title, _ = util.SplitStringAtByteN(issue.Title, 255)
issue.Title = util.EllipsisDisplayString(issue.Title, 255)
if err = NewIssueWithIndex(ctx, issue.Poster, NewIssueOptions{
Repo: repo,