Fixes filename slash escaping for zip file

This commit is contained in:
Mo Bitar
2018-06-16 11:45:22 -05:00
parent 5e8c5e936a
commit 38956471b1

View File

@@ -71,7 +71,7 @@ class ArchiveManager {
var note = notes[index];
var blob = new Blob([note.text], {type: 'text/plain'});
var title = note.title.replace("/", "").replace("\\", "");
var title = note.title.replace(/\//g, "").replace(/\\+/g, "");
zipWriter.add(`${title}-${note.uuid}.txt`, new zip.BlobReader(blob), () => {
index++;