diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 023bd1cdcc..83a3d1df7e 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -2810,7 +2810,7 @@ Zotero.defineProperty(Zotero.Item.prototype, 'attachmentFilename', { if (!path) { return ''; } - var prefixedPath = path.match(/^(?:attachments|storage):(.+)$/); + var prefixedPath = path.match(/^(?:attachments|storage):(.*)$/); if (prefixedPath) { return prefixedPath[1]; } diff --git a/chrome/content/zotero/xpcom/storage/storageLocal.js b/chrome/content/zotero/xpcom/storage/storageLocal.js index fb18e70679..d173f53645 100644 --- a/chrome/content/zotero/xpcom/storage/storageLocal.js +++ b/chrome/content/zotero/xpcom/storage/storageLocal.js @@ -687,7 +687,7 @@ Zotero.Sync.Storage.Local = { var filename = item.attachmentFilename; if (!filename) { - throw new Error("Empty path for item " + item.key); + Zotero.debug("Empty filename for item " + item.key, 2); } // Don't save Windows aliases if (filename.endsWith('.lnk')) {