MCPcopy Index your code
hub / github.com/CapSoftware/Cap / normalizeTranscriptCueText

Function normalizeTranscriptCueText

apps/web/lib/transcript-vtt.ts:1–3  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

1export function normalizeTranscriptCueText(text: string): string {
2 return text.replace(/\s+/g, " ").trim();
3}
4
5export function updateVttEntryText(
6 vttContent: string,

Callers 3

saveEditFunction · 0.90
updateVttEntryTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected