fix typo
This commit is contained in:
parent
569d509de5
commit
68e40aeb47
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ func SanitizeMessageContent(input string) string {
|
||||||
// Handles multi-byte Unicode characters properly.
|
// Handles multi-byte Unicode characters properly.
|
||||||
// If the string is truncated, "..." is appended to indicate truncation.
|
// If the string is truncated, "..." is appended to indicate truncation.
|
||||||
func Truncate(s string, maxLen int) string {
|
func Truncate(s string, maxLen int) string {
|
||||||
// If the no-truncate flag is active, it returns the integer string
|
// If the no-truncate flag is active, it returns the full string
|
||||||
if disableTruncation.Load() {
|
if disableTruncation.Load() {
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue