Updated on 2026-08-14
This commit is contained in:
parent
c6ddab601b
commit
2e4d60e72c
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ class TruncateStart : BaseTruncate() {
|
|||
class TruncateMiddle : BaseTruncate() {
|
||||
|
||||
override fun roughTruncate(text: String, residualLength: Int): String {
|
||||
if (text.length <= residualLength) return text
|
||||
if (text.length <= residualLength || residualLength < 0) return text
|
||||
|
||||
hasBeenTruncated = true
|
||||
val halfOfResidualLength = residualLength / 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue