From dd9ee6621237db79c4b0781a18cf595532bde035 Mon Sep 17 00:00:00 2001 From: Maecenas Li Date: Sat, 8 Sep 2018 18:01:02 +0800 Subject: [PATCH] Add support for marginnoteapp:// URI protocol (#1567) https://forums.zotero.org/discussion/comment/316070/#Comment_316070 --- chrome/content/zotero/xpcom/attachments.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index 407cfb8d8b..3461524839 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -606,9 +606,10 @@ Zotero.Attachments = new function(){ Kindle (kindle://) Logos (logosres:) Bear (bear://) + MarginNote (marginnoteapp://) Zotero (zotero://) */ - var urlRe = /^((https?|zotero|evernote|onenote|brain|nv|mlo|kindle|x-devonthink-item|bear|ftp):\/\/|logosres:)[^\s]*$/; + var urlRe = /^((https?|zotero|evernote|onenote|brain|nv|mlo|kindle|x-devonthink-item|bear|marginnoteapp|ftp):\/\/|logosres:)[^\s]*$/; var matches = urlRe.exec(url); if (!matches) { throw ("Invalid URL '" + url + "' in Zotero.Attachments.linkFromURL()");