From 4a4490923b49d98bff4f49f3c8d77ee8b3c7d54b Mon Sep 17 00:00:00 2001 From: adam3smith Date: Tue, 23 Apr 2013 14:21:43 -0600 Subject: [PATCH] add protocol description --- chrome/content/zotero/xpcom/attachments.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index 9bf354050..62658df51 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -211,7 +211,17 @@ Zotero.Attachments = new function(){ parentCollectionIDs = undefined; } - // Throw error on invalid URLs + /* Throw error on invalid URLs + We currently accept the following protocols: + PersonalBrain (brain://) + DevonThink (x-devonthink-item://) + Notational Velocity (nv://) + MyLife Organized (mlo://) + Evernote (evernote://) + OneNote (onenote://) + Kindle (kindle://) + Logos (logosres:) */ + var urlRe = /^((https?|evernote|onenote|brain|nv|mlo|kindle|x-devonthink-item|ftp):\/\/|logosres:)[^\s]*$/; var matches = urlRe.exec(url);