www

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

commit b94837d3da334b273536099425dd852d7b59a7d3
parent d6bd35300506c5ae7a344d27950f2726e7c752ef
Author: aurimasv <aurimas.dev@gmail.com>
Date:   Fri, 14 Sep 2012 02:21:54 -0500

Recognize URI protocol based on RFC 3986 specification

Diffstat:
Mchrome/content/zotero/xpcom/translation/translate_item.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/translation/translate_item.js b/chrome/content/zotero/xpcom/translation/translate_item.js @@ -204,7 +204,7 @@ Zotero.Translate.ItemSaver.prototype = { }, "_saveAttachmentFile":function(attachment, parentID) { - const urlRe = /(([a-z]+):\/\/[^\s]*)/i; + const urlRe = /(([a-z][-+\.a-z0-9]*):\/\/[^\s]*)/i; //according to RFC3986 Zotero.debug("Translate: Adding attachment", 4); if(!attachment.url && !attachment.path) {