Find why this user-visible label truncator can return broken text.
JavaScript
function shortLabel(input) {
if (input.length <= 8) return input;
return `${input.slice(0, 8)}…`;
}
function shortLabel(input) {
if (input.length <= 8) return input;
return `${input.slice(0, 8)}…`;
}