Skip to content

The swiss army knife of lossless video/audio editing

allow spaces in file name

Mikael Finstad250731e4cea6
diff --git a/src/renderer/src/util.ts b/src/renderer/src/util.ts
index 53414793..91482173 100644
--- a/src/renderer/src/util.ts
+++ b/src/renderer/src/util.ts
@@ -171,7 +171,8 @@ export async function transferTimestamps({ inPath, outPath, cutFrom = 0, cutTo:
}
export function filenamify(name: string) {
- return name.replaceAll(/[^\p{L}\p{N}.-_]/gu, '_');
+ // \p{L}\p{N} are unicode letters and numbers
+ return name.replaceAll(/[^\p{L}\p{N} .-_]/gu, '_');
}
// eslint-disable-next-line space-before-function-paren