Browse Source

Fix a missing invalid char for filename for windows ('\')

Godzil 5 years ago
parent
commit
4193643306
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/episode.ts

+ 1 - 1
src/episode.ts

@@ -66,7 +66,7 @@ function fileExist(path: string)
 
 function sanitiseFileName(str: string)
 {
-  return str.replace(/[\/':\?\*"<>\.]/g, '_');
+  return str.replace(/[\/':\?\*"<>\\\.]/g, '_');
 }
 
 /**