The swiss army knife of lossless video/audio editing
Fix invalid character range in filename sanitizer
Chris Rode25900d146d70
diff --git a/src/renderer/src/util.ts b/src/renderer/src/util.tsindex 10ec2564..d09a077f 100644--- a/src/renderer/src/util.ts+++ b/src/renderer/src/util.ts@@ -180,7 +180,8 @@ export async function transferTimestamps({ inPath, outPath, cutFrom = 0, cutTo:export function filenamify(name: string) {// \p{L}\p{N} are unicode letters and numbers- return name.replaceAll(/[^\p{L}\p{N} .-_]/gu, '_');+ // Keep the hyphen last so it is treated literally rather than as a character-class range.+ return name.replaceAll(/[^\p{L}\p{N} ._-]/gu, '_');}// eslint-disable-next-line space-before-function-paren