Selaa lähdekoodia

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

Godzil 5 vuotta sitten
vanhempi
commit
4193643306
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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, '_');
 }
 
 /**