safeTitle access for note.title.replace

This commit is contained in:
Mo Bitar
2018-08-19 15:42:04 -05:00
parent f7df71a52e
commit a94ae8dead
2 changed files with 2 additions and 2 deletions

View File

@@ -69,7 +69,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(/\//g, "").replace(/\\+/g, ""); var title = note.safeTitle().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++;

View File

@@ -1,6 +1,6 @@
{ {
"name": "standard-notes-web", "name": "standard-notes-web",
"version": "2.3.6", "version": "2.3.7",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/standardnotes/web" "url": "https://github.com/standardnotes/web"