From 2ee6886cf1b0257f8a10843e45ca76c0f9c801fb Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 17 Apr 2016 04:16:25 -0400 Subject: [PATCH] Update citeproc-js to 1.1.98 --- chrome/content/zotero/xpcom/citeproc.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js index 7c5278836..533a28eed 100644 --- a/chrome/content/zotero/xpcom/citeproc.js +++ b/chrome/content/zotero/xpcom/citeproc.js @@ -34,7 +34,7 @@ if (!Array.indexOf) { }; } var CSL = { - PROCESSOR_VERSION: "1.1.96", + PROCESSOR_VERSION: "1.1.98", CONDITION_LEVEL_TOP: 1, CONDITION_LEVEL_BOTTOM: 2, PLAIN_HYPHEN_REGEX: /(?:[^\\]-|\u2013)/, @@ -236,7 +236,7 @@ var CSL = { } var lst = val.split(/\s*\|\|\s*/); if (lst.length === 1) { - names[key].push({family:lst[0],isInstitution:true}); + names[key].push({literal:lst[0]}); } else if (lst.length === 2) { var name = {family:lst[0],given:lst[1]}; CSL.parseParticles(name); @@ -1200,7 +1200,7 @@ CSL.parseXml = function(str) { }); } function _getAttributes(elem) { - var m = elem.match(/([^\"= ]+)=\"[^\"]*\"/g); + var m = elem.match(/([^\'\"= ]+)=(?:\"[^\"]*\"|\'[^\']*\')/g); if (m) { for (var i=0,ilen=m.length;i]+)");