MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / parseLastAbsoluteMp4Path

Function parseLastAbsoluteMp4Path

src/utils/video_capture.ts:142–148  ·  view source on GitHub ↗
(buffer: string | undefined)

Source from the content-addressed store, hash-verified

140}
141
142function parseLastAbsoluteMp4Path(buffer: string | undefined): string | null {
143 if (!buffer) return null;
144 const matches = [...buffer.matchAll(/(\s|^)(\/[^\s'"]+\.mp4)\b/gi)];
145 if (matches.length === 0) return null;
146 const last = matches[matches.length - 1];
147 return last?.[2] ?? null;
148}
149
150function createSessionId(simulatorUuid: string): string {
151 return `${simulatorUuid}:${Date.now()}`;

Callers 1

stopSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected