Skip to content

Commit c1b35fc

Browse files
committed
Remove redundant regex from filename cleaner helper
1 parent 9a702b6 commit c1b35fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/MediaTypeManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class MediaTypeManager {
7777

7878
cleanFileName(fileName: string) {
7979
const invalidCharsRegex = /\™||,|#|\[|\]|\||\^|\<|\>|\?|\*|\\|\//g;
80-
return fileName.replaceAll(invalidCharsRegex, '').replaceAll(/"/g, "'").replaceAll(/:/g, ' -');
80+
return fileName.replaceAll(invalidCharsRegex, '').replaceAll('"', "'").replaceAll(':', ' -');
8181
}
8282

8383
async getTemplate(mediaTypeModel: MediaTypeModel, app: App): Promise<string> {

0 commit comments

Comments
 (0)