Fix file not opening for section downloads

This commit is contained in:
aandrew-me 2024-11-05 13:35:32 +03:00
parent e778abf297
commit c7dddc94de
2 changed files with 5 additions and 1 deletions

View File

@ -1060,7 +1060,8 @@ function download(
if (range2 || rangeCmd) { if (range2 || rangeCmd) {
let rangeTxt = (range2 || rangeCmd).replace("*", ""); let rangeTxt = (range2 || rangeCmd).replace("*", "");
if (os.platform() === "win32") { if (os.platform() === "win32") {
rangeTxt = rangeTxt.replace(":", "_"); rangeTxt = rangeTxt.replaceAll(":", "_");
console.log({rangeTxt})
} }
filename += `[${rangeTxt}]` filename += `[${rangeTxt}]`
} }

View File

@ -2,5 +2,8 @@
"compilerOptions": { "compilerOptions": {
"allowJs": true, "allowJs": true,
"checkJs": true, "checkJs": true,
"lib": [
"ES2021.String"
]
} }
} }