Skip to content

Commit fef5ed7

Browse files
Apply suggestion from @cubic-dev-ai[bot]
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
1 parent fc5e411 commit fef5ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/cli/src/ui/SlashCommandUI.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const truncateDescription = (description: string): string => {
1010
if (description.length <= MAX_DESCRIPTION_LENGTH) {
1111
return description;
1212
}
13-
return description.slice(0, MAX_DESCRIPTION_LENGTH).trim() + "…";
13+
return Array.from(description).slice(0, MAX_DESCRIPTION_LENGTH).join("").trim() + "…";
1414
};
1515

1616
interface SlashCommandUIProps {

0 commit comments

Comments
 (0)