allow utf8 letters

when not in sanitize mode

closes #889 #2482
pull/2499/head
Mikael Finstad 4 months ago
parent 250611433e
commit 968ddf32a2
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

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

Loading…
Cancel
Save