Merge pull request #1968 from Human-Connection/1893-fix

fix: Only one ellipse is displayed
This commit is contained in:
Robert Schäfer 2019-10-21 13:28:12 +02:00 committed by GitHub
commit 59e3d62bf8
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) {