From f47b878f7b10712add6aa59d0a17afcea763583a Mon Sep 17 00:00:00 2001 From: adam3smith Date: Tue, 23 Apr 2013 13:26:41 -0600 Subject: [PATCH] add more item handler protocols to add by URI --- chrome/content/zotero/xpcom/attachments.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index 32e641012..9bf354050 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -212,9 +212,8 @@ Zotero.Attachments = new function(){ } // Throw error on invalid URLs - // - // TODO: allow other schemes - var urlRe = /^https?:\/\/[^\s]*$/; + var urlRe = /^((https?|evernote|onenote|brain|nv|mlo|kindle|x-devonthink-item|ftp):\/\/|logosres:)[^\s]*$/; + var matches = urlRe.exec(url); if (!matches) { if(callback) callback(false);