From 013389c696dbda42704c72ae2f26077caa7c15f2 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Tue, 20 May 2025 15:57:41 +0530 Subject: [PATCH] Fix regex for Windows --- desktop/src/main/services/ffmpeg-worker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop/src/main/services/ffmpeg-worker.ts b/desktop/src/main/services/ffmpeg-worker.ts index 420906925a..a5ccf503b9 100644 --- a/desktop/src/main/services/ffmpeg-worker.ts +++ b/desktop/src/main/services/ffmpeg-worker.ts @@ -544,10 +544,10 @@ const deletePathIgnoringErrors = async (tempFilePath: string) => { * * Stream #0:1[0x2](und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(progressive), 480x270 [SAR 1:1 DAR 16:9], 539 kb/s, 29.97 fps, 29.97 tbr, 30k tbn (default) */ -const videoStreamLineRegex = /Stream #.+: Video:(.+)\n/; +const videoStreamLineRegex = /Stream #.+: Video:(.+)$/; /** {@link videoStreamLineRegex}, but global. */ -const videoStreamLinesRegex = /Stream #.+: Video:(.+)\n/g; +const videoStreamLinesRegex = /Stream #.+: Video:(.+)$/g; /** * A regex that matches " kb/s" preceded by a space. See