fix: Only one ellipse is displayed

This commit is contained in:
Mogge 2019-10-21 11:33:26 +02:00 committed by GitHub
parent 3163f6c9b1
commit 8728feaa37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,11 +31,7 @@ export default ({ app = {} }) => {
if (length <= 0) {
return value
}
let output = trunc(value, length).html
if (output.length < value.length) {
output += ' …'
}
return output
return trunc(value, length).html
},
list: (value, glue = ', ', truncate = 0) => {
if (!Array.isArray(value) || !value.length) {