From 260301eb2374650f16777650792068a15f372f5f Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Sun, 1 Mar 2026 13:28:23 +0800 Subject: [PATCH] fix concat command bug fixes #2766 --- src/renderer/src/hooks/useFfmpegOperations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/hooks/useFfmpegOperations.ts b/src/renderer/src/hooks/useFfmpegOperations.ts index f8fa41f8..11034c3d 100644 --- a/src/renderer/src/hooks/useFfmpegOperations.ts +++ b/src/renderer/src/hooks/useFfmpegOperations.ts @@ -221,7 +221,7 @@ function useFfmpegOperations({ filePath, treatInputFileModifiedTimeAsStart, trea const ffmpegCommandLine = getFfCommandLine('ffmpeg', ffmpegArgs); - const fullCommandLine = `echo -e "${concatTxt.replace(/\n/, String.raw`\n`)}" | ${ffmpegCommandLine}`; + const fullCommandLine = `echo -e "${concatTxt.replaceAll('\n', String.raw`\n`)}" | ${ffmpegCommandLine}`; console.log(fullCommandLine); appendLastCommandsLog(fullCommandLine);