The swiss army knife of lossless video/audio editing
Compare control characters by code point
Claude527332cf2347
diff --git a/src/renderer/src/util/outputNameTemplate.ts b/src/renderer/src/util/outputNameTemplate.tsindex 02fc0e02..ab28d91d 100644--- a/src/renderer/src/util/outputNameTemplate.ts+++ b/src/renderer/src/util/outputNameTemplate.ts@@ -52,7 +52,10 @@ export interface GenerateMergedOutFileNamesParams {}// make invisible control characters readable, e.g. U+0009-const formatInvalidChar = (char: string) => (char < ' ' ? `U+${char.codePointAt(0)!.toString(16).toUpperCase().padStart(4, '0')}` : char);+function formatInvalidChar(char: string) {+ const codePoint = char.codePointAt(0)!;+ return codePoint < 0x20 ? `U+${codePoint.toString(16).toUpperCase().padStart(4, '0')}` : char;+}function getTemplateProblems({ fileNames, filePath, outputDir, safeOutputFileName }: {fileNames: string[],