From fb74fe76b7ac0ddfe91ad7e2b0d4f7a8128ce4ab Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 1 Dec 2017 02:10:05 -0500 Subject: [PATCH] Update citeproc-js to 1.1.181 --- chrome/content/zotero/xpcom/citeproc.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js index 356659bddf..1ffc7d07d2 100644 --- a/chrome/content/zotero/xpcom/citeproc.js +++ b/chrome/content/zotero/xpcom/citeproc.js @@ -24,7 +24,7 @@ */ var CSL = { - PROCESSOR_VERSION: "1.1.180", + PROCESSOR_VERSION: "1.1.181", CONDITION_LEVEL_TOP: 1, CONDITION_LEVEL_BOTTOM: 2, PLAIN_HYPHEN_REGEX: /(?:[^\\]-|\u2013)/, @@ -3272,6 +3272,13 @@ CSL.Doppeler = function(rexStr, stringMangler) { }; } var split = str.split(splitRex); + for (var i=match.length-1; i> -1; i--) { + var tag = match[i]; + if (tag === "\'" && split[i+1].length > 0) { + split[i+1] = match[i] + split[i+1]; + match[i] = ""; + } + } return { tags: match, strings: split,