Fixes filename slash escaping for zip file
This commit is contained in:
@@ -71,7 +71,7 @@ class ArchiveManager {
|
|||||||
var note = notes[index];
|
var note = notes[index];
|
||||||
var blob = new Blob([note.text], {type: 'text/plain'});
|
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), () => {
|
zipWriter.add(`${title}-${note.uuid}.txt`, new zip.BlobReader(blob), () => {
|
||||||
index++;
|
index++;
|
||||||
|
|||||||
Reference in New Issue
Block a user