MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / truncate

Function truncate

packages/cli/src/utils/feedbackIssue.ts:30–32  ·  view source on GitHub ↗
(value: string, max: number)

Source from the content-addressed store, hash-verified

28}
29
30function truncate(value: string, max: number): string {
31 return value.length > max ? `${value.slice(0, max - 1)}…` : value;
32}
33
34function buildIssueTitle(rating: number, comment?: string): string {
35 const firstLine = comment?.split("\n")[0]?.trim();

Callers 2

buildIssueTitleFunction · 0.85
buildIssueBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected