www

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

commit f47b878f7b10712add6aa59d0a17afcea763583a
parent c11268533840840d90bb088914e75179453b2e18
Author: adam3smith <karcher@u.northwestern.edu>
Date:   Tue, 23 Apr 2013 13:26:41 -0600

add more item handler protocols to add by URI

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