mirror of
https://github.com/zotero/zotero.git
synced 2026-10-04 02:31:47 +00:00
add more item handler protocols to add by URI
This commit is contained in:
parent
c112685338
commit
f47b878f7b
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue