allow spaces in file name

even if sanitize is enabled.
i think it should be safe
closes #2498
pull/2510/head
Mikael Finstad 3 months ago
parent 2507313b19
commit 250731e4ce
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -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

Loading…
Cancel
Save