From 3b17681db37a9818a940c9199696a64cb12866dd Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 3 Apr 2018 18:41:40 -0400 Subject: [PATCH] Update citeproc-js to 1.1.200 --- chrome/content/zotero/xpcom/citeproc.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js index 598c9312c..29fcaa67f 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.199", + PROCESSOR_VERSION: "1.1.200", CONDITION_LEVEL_TOP: 1, CONDITION_LEVEL_BOTTOM: 2, PLAIN_HYPHEN_REGEX: /(?:[^\\]-|\u2013)/, @@ -15036,7 +15036,8 @@ CSL.Util.FlipFlopper = function(state) { if (str.slice(0, 1) === " " && !str.match(/^\s+[\'\"]/)) { leadingSpace = true; } - var str = " " + str.replace(/([A-Za-z])’([A-Za-z])/g, "$1\'$2"); + var rex = new RegExp("(" + CSL.ROMANESQUE_REGEXP.source + ")\u2019(" + CSL.ROMANESQUE_REGEXP.source + ")", "g") + var str = " " + str.replace(rex, "$1\'$2"); var doppel = _doppelString(str); if (doppel.tags.length === 0) return; var quoteFormSeen = false;