diff --git a/CHANGELOG.md b/CHANGELOG.md index bc5e41c..0dc0331 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Release history +## 0.16.3, 2023-02-06 + +- [FIX] Fixes handling of backslashes and colon characters in file names [#43] + + ## 0.16.2, 2023-01-30 - [CHG] Shortens `*/rename` error messages diff --git a/src/utils/file-handling.ts b/src/utils/file-handling.ts index f935d1e..72626b2 100644 --- a/src/utils/file-handling.ts +++ b/src/utils/file-handling.ts @@ -200,6 +200,7 @@ export function sanitizeFilePath( filename: string, isFolder: boolean = false, ): string { + filename = filename.replace(/[\\:]/g, "-"); filename = normalizePath(filename) .replace(/^[\/\.]+/, "") .trim();