Skip to content

The swiss army knife of lossless video/audio editing

allow utf8 letters

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