Skip to content

Commit

Permalink
Fix windows save directory path not formatted issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Thavarshan committed Sep 27, 2024
1 parent c3bac75 commit f2490be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "comet",
"productName": "Comet",
"private": true,
"version": "2.1.2",
"version": "2.2.1",
"description": "A simple media converter",
"keywords": [
"comet",
Expand Down
2 changes: 1 addition & 1 deletion src/ui/blocks/SaveDirectory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function formatPath(path?: string) {
return;
}
let formatted = path?.replace(/^\//, '').replace(/\//g, '');
let formatted = path.replace(/\\/g, '/').replace(/^\//, '').replace(/\//g, '');
if (formatted.length > 40) {
formatted = formatted.slice(formatted.lastIndexOf('') + 2);
Expand Down

0 comments on commit f2490be

Please sign in to comment.