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;