Skip to content

The swiss army knife of lossless video/audio editing

add "-" to allowed sanitized chars

Mikael Finstad822a366235e4
diff --git a/src/util.js b/src/util.js
index 700f1dd2..e5bcc0e7 100644
--- a/src/util.js
+++ b/src/util.js
@@ -110,7 +110,7 @@ export function setFileNameTitle(filePath) {
}
export function filenamify(name) {
- return name.replace(/[^0-9a-zA-Z_.]/g, '_');
+ return name.replace(/[^0-9a-zA-Z_\-.]/g, '_');
}
export function withBlur(cb) {