MCPcopy Create free account
hub / github.com/code-pushup/cli / truncateTitle

Function truncateTitle

packages/utils/src/lib/formatting.ts:120–122  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

118}
119
120export function truncateTitle(text: string): string {
121 return truncateText(text, MAX_TITLE_LENGTH);
122}
123
124export function truncateDescription(text: string): string {
125 return truncateText(text, MAX_DESCRIPTION_LENGTH);

Callers 1

ruleToAuditFunction · 0.90

Calls 1

truncateTextFunction · 0.85

Tested by

no test coverage detected