safeTitle access for note.title.replace
This commit is contained in:
@@ -69,7 +69,7 @@ class ArchiveManager {
|
||||
var note = notes[index];
|
||||
var blob = new Blob([note.text], {type: 'text/plain'});
|
||||
|
||||
var title = note.title.replace(/\//g, "").replace(/\\+/g, "");
|
||||
var title = note.safeTitle().replace(/\//g, "").replace(/\\+/g, "");
|
||||
|
||||
zipWriter.add(`${title}-${note.uuid}.txt`, new zip.BlobReader(blob), () => {
|
||||
index++;
|
||||
|
||||
Reference in New Issue
Block a user