Remove redundant regex from filename cleaner helper
This commit is contained in:
parent
9a702b6fc7
commit
c1b35fc895
1 changed files with 1 additions and 1 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue