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

Function normalizeRepoUrl

packages/cli/src/utils/feedbackIssue.ts:22–28  ·  view source on GitHub ↗
(repoUrl: string)

Source from the content-addressed store, hash-verified

20}
21
22function normalizeRepoUrl(repoUrl: string): string {
23 const trimmed = repoUrl
24 .trim()
25 .replace(/\/$/, "")
26 .replace(/\.git$/, "");
27 return trimmed || HYPERFRAMES_REPO_URL;
28}
29
30function truncate(value: string, max: number): string {
31 return value.length > max ? `${value.slice(0, max - 1)}…` : value;

Callers 1

buildIssueUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected