Skip to content

Commit

Permalink
fix download filename on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
timber3252 authored and rocka committed Jun 16, 2021
1 parent d0040d8 commit a567f0d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/api/downloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const d = debug('Downloader');
* @param {string} text
*/
function escapeSlash(text) {
if (process.platform === 'win32') {
return text.replace(/[<>:"\/\\\|\?\*]/g, ' ');
}
return text.replace(/\//g, ' ');
}

Expand Down

0 comments on commit a567f0d

Please sign in to comment.