Remove redundant regex from filename cleaner helper

This commit is contained in:
Karn 2025-08-30 19:51:55 +01:00
parent 9a702b6fc7
commit c1b35fc895

View file

@ -77,7 +77,7 @@ export class MediaTypeManager {
cleanFileName(fileName: string) {
const invalidCharsRegex = /\™|\®|,|#|\[|\]|\||\^|\<|\>|\?|\*|\\|\//g;
return fileName.replaceAll(invalidCharsRegex, '').replaceAll(/"/g, "'").replaceAll(/:/g, ' -');
return fileName.replaceAll(invalidCharsRegex, '').replaceAll('"', "'").replaceAll(':', ' -');
}
async getTemplate(mediaTypeModel: MediaTypeModel, app: App): Promise<string> {