commit 3b17681db37a9818a940c9199696a64cb12866dd
parent 89d7dad12653ff1fad10ca8769e43a050d145ba4
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 3 Apr 2018 18:41:40 -0400
Update citeproc-js to 1.1.200
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git 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;