Skip to content

Commit

Permalink
[REL] 0.16.3
Browse files Browse the repository at this point in the history
- [FIX] Fixes handling of backslashes and colon characters in file names [#43]
  • Loading branch information
czottmann authored Feb 6, 2023
2 parents c087146 + 74d89a7 commit 28e7875
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions src/utils/file-handling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ export function sanitizeFilePath(
filename: string,
isFolder: boolean = false,
): string {
filename = filename.replace(/[\\:]/g, "-");
filename = normalizePath(filename)
.replace(/^[\/\.]+/, "")
.trim();
Expand Down

0 comments on commit 28e7875

Please sign in to comment.