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

Function formatReleaseNoteForDisplay

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

Source from the content-addressed store, hash-verified

230 * Formats release notes for display, with smart truncation
231 */
232export function formatReleaseNoteForDisplay(
233 note: string,
234 maxWidth: number,
235): string {
236 // Simply truncate at the max width, same as Recent Activity descriptions
237 return truncate(note, maxWidth)
238}
239
240/**
241 * 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