MCPcopy Create free account
hub / github.com/freecodexyz/free-code / formatReleaseNoteForDisplay

Function formatReleaseNoteForDisplay

src/utils/logoV2Utils.ts:234–240  ·  view source on GitHub ↗
(
  note: string,
  maxWidth: number,
)

Source from the content-addressed store, hash-verified

232 * Formats release notes for display, with smart truncation
233 */
234export function formatReleaseNoteForDisplay(
235 note: string,
236 maxWidth: number,
237): string {
238 // Simply truncate at the max width, same as Recent Activity descriptions
239 return truncate(note, maxWidth)
240}
241
242/**
243 * Gets the common logo display data used by both LogoV2 and CondensedLogo

Callers

nothing calls this directly

Calls 1

truncateFunction · 0.70

Tested by

no test coverage detected