Skip to content

Commit a6702cf

Browse files
committed
Update DownloadAllContentSavaAsZIP.user.js
1 parent a166c7a commit a6702cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DownloadAllContent/DownloadAllContentSavaAsZIP.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
let catTitle = cat.match(/.*?\r\n/);
3737
if (!catTitle) return;
3838
catTitle = catTitle[0].trim();
39-
zip.file(index++ + " - " + catTitle.replace(/[\*\/:<>\?\\\|\r\n]/g, "").slice(0, 50) + ".txt", cat.replace(catTitle, "").replace(/^[\n\r]+/, ""));
39+
zip.file(index++ + " - " + catTitle.replace(/[\*\/:<>\?\\\|\r\n]/g, "_").slice(0, 50) + ".txt", cat.replace(catTitle, "").replace(/^[\n\r]+/, ""));
4040
});
4141
zip.generateAsync({type: "blob", compression: "DEFLATE"}, meta => {zipTips.innerText = "percent: " + ((meta && meta.percent && meta.percent.toFixed(2)) || "100") + "%"}).then(function(content){
4242
callback(content);

0 commit comments

Comments
 (0)