fix lint
This commit is contained in:
parent
017ec11737
commit
5e239f48c9
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ function truncateDescription(description, maxChars=200) {
|
|||
// Use slice array instead of substring to prevent breaking emojis
|
||||
let truncated = chars.slice(0, maxChars).join('');
|
||||
// Format truncated string
|
||||
return (chars.length <= maxChars) ? truncated : truncated + "..." ;
|
||||
return (chars.length > maxChars) ? truncated + '...' : truncated;
|
||||
}
|
||||
|
||||
function normalizeClaimUrl(url) {
|
||||
|
|
Loading…
Reference in a new issue