Fix truncate
This commit is contained in:
@@ -425,7 +425,7 @@ export const truncate = (
|
|||||||
|
|
||||||
if (currentSize > minLength) {
|
if (currentSize > minLength) {
|
||||||
content = content
|
content = content
|
||||||
.slice(0, Math.max(1, i))
|
.slice(0, Math.max(1, i + 1))
|
||||||
.concat({type: ParsedType.Ellipsis, value: "…", raw: ""})
|
.concat({type: ParsedType.Ellipsis, value: "…", raw: ""})
|
||||||
|
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user