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

Function getInputExtension

apps/web/workflows/process-video.ts:127–136  ·  view source on GitHub ↗
(rawFileKey: string)

Source from the content-addressed store, hash-verified

125}
126
127function getInputExtension(rawFileKey: string): string {
128 const parts = rawFileKey.split(".");
129 const extension = parts.at(-1)?.toLowerCase();
130
131 if (!extension) {
132 return ".mp4";
133 }
134
135 return `.${extension}`;
136}
137
138async function waitForRetry(delayMs: number): Promise<void> {
139 await new Promise((resolve) => setTimeout(resolve, delayMs));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected