mirror of
https://github.com/Wanxp/obsidian-douban.git
synced 2026-04-04 16:48:44 +08:00
fix error when the name of file includes dot
This commit is contained in:
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, '_');
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user