mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-11-10 07:53:57 +00:00
8 lines
300 B
TypeScript
8 lines
300 B
TypeScript
/** Helper markers are line-framed; keep the actual OS/writer error visible after partial recovery. */
|
|
export function parseNativeCaptureInterruption(output: string): string | null {
|
|
return (
|
|
/(?:^|\n)(?:CAPTURE_INTERRUPTED|STREAM_STOPPED):\s*([^\r\n]+)/.exec(output)?.[1]?.trim() ||
|
|
null
|
|
);
|
|
}
|