This commit is contained in:
Baltazar Gomez 2021-08-10 12:16:17 -05:00 committed by Thomas Zarebczan
parent 017ec11737
commit 5e239f48c9

View file

@ -47,7 +47,7 @@ function truncateDescription(description, maxChars=200) {
// Use slice array instead of substring to prevent breaking emojis // Use slice array instead of substring to prevent breaking emojis
let truncated = chars.slice(0, maxChars).join(''); let truncated = chars.slice(0, maxChars).join('');
// Format truncated string // Format truncated string
return (chars.length <= maxChars) ? truncated : truncated + "..." ; return (chars.length > maxChars) ? truncated + '...' : truncated;
} }
function normalizeClaimUrl(url) { function normalizeClaimUrl(url) {