Escape slashes in zip export

This commit is contained in:
Mo Bitar
2018-05-27 11:16:11 -05:00
parent d0e5c89e48
commit ef61c7bc6a

View File

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