Add support for bear:// URI protocol (#1520)
https://forums.zotero.org/discussion/comment/310717#Comment_310717
This commit is contained in:
parent
5425c272b2
commit
b4ee2fbd98
1 changed files with 2 additions and 1 deletions
|
@ -539,9 +539,10 @@ Zotero.Attachments = new function(){
|
||||||
OneNote (onenote://)
|
OneNote (onenote://)
|
||||||
Kindle (kindle://)
|
Kindle (kindle://)
|
||||||
Logos (logosres:)
|
Logos (logosres:)
|
||||||
|
Bear (bear://)
|
||||||
Zotero (zotero://) */
|
Zotero (zotero://) */
|
||||||
|
|
||||||
var urlRe = /^((https?|zotero|evernote|onenote|brain|nv|mlo|kindle|x-devonthink-item|ftp):\/\/|logosres:)[^\s]*$/;
|
var urlRe = /^((https?|zotero|evernote|onenote|brain|nv|mlo|kindle|x-devonthink-item|bear|ftp):\/\/|logosres:)[^\s]*$/;
|
||||||
var matches = urlRe.exec(url);
|
var matches = urlRe.exec(url);
|
||||||
if (!matches) {
|
if (!matches) {
|
||||||
throw ("Invalid URL '" + url + "' in Zotero.Attachments.linkFromURL()");
|
throw ("Invalid URL '" + url + "' in Zotero.Attachments.linkFromURL()");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue