fix error when the name of file includes dot

This commit is contained in:
wanxp 2023-04-21 09:24:50 +08:00
parent cb9ffb4925
commit d667b4b2a8

@ -59,6 +59,6 @@ export const FileUtil = {
* replace special characters for filename
*/
replaceSpecialCharactersForFileName(fileName: string): string {
return fileName.replaceAll(/[\\/:*?"<>|]/g, '_');
return fileName.replaceAll(/[\\/:*?"<>|.]/g, '_');
}
};