more stuff

This commit is contained in:
mProjectsCode 2022-05-06 23:45:22 +02:00
parent 42610459d5
commit c7a75ff93c
5 changed files with 55 additions and 9 deletions

View file

@ -13,5 +13,5 @@ export function getFileName(item: MediaTypeModel) {
}
export function replaceIllegalFileNameCharactersInString(string: string) {
return string.replace(/[\\,#%&{}/*<>$":@.]*/g, '');
return string.replace(/[\\,#%&{}/*<>$"@.]*/g, '').replace(/:+/g, ' -');
}