add more item handler protocols to add by URI

This commit is contained in:
adam3smith 2013-04-23 13:26:41 -06:00
parent c112685338
commit f47b878f7b

View File

@ -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);