This commit is contained in:
Mrx
2026-03-16 13:10:42 +08:00
parent 14b2c53eeb
commit 6f0a8e0519
3 changed files with 35 additions and 16 deletions

View File

@@ -552,6 +552,9 @@ func (r *DatabaseTableReader) getContentPreview(content string, maxLen int) stri
if len(content) <= maxLen {
return content
}
if maxLen > len(content) {
maxLen = len(content)
}
return content[:maxLen] + "..."
}