www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 4a4490923b49d98bff4f49f3c8d77ee8b3c7d54b
parent f47b878f7b10712add6aa59d0a17afcea763583a
Author: adam3smith <karcher@u.northwestern.edu>
Date:   Tue, 23 Apr 2013 14:21:43 -0600

add protocol description

Diffstat:
Mchrome/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 @@ -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);