Upgrade citeproc-js to version 1.0.272

This commit is contained in:
Frank 2012-01-30 21:47:35 +08:00 committed by Simon Kornblith
parent b9422b32e6
commit 65d8819fd0

View File

@ -1989,7 +1989,7 @@ CSL.DateParser = function () {
};
CSL.Engine = function (sys, style, lang, forceLang) {
var attrs, langspec, localexml, locale;
this.processor_version = "1.0.271";
this.processor_version = "1.0.272";
this.csl_version = "1.0";
this.sys = sys;
this.sys.xml = new CSL.System.Xml.Parsing();
@ -9290,6 +9290,7 @@ CSL.Util.Names.initializeWith = function (state, name, terminator, normalizeOnly
namelist = namelist.replace(/\-/g, " ");
}
namelist = namelist.replace(/\s*\-\s*/g, "-").replace(/\s+/g, " ");
namelist = namelist.replace(/-([a-z])/g, "\u2013$1")
mm = namelist.match(/[\-\s]+/g);
lst = namelist.split(/[\-\s]+/);
if (lst.length === 0) {
@ -9321,6 +9322,7 @@ CSL.Util.Names.initializeWith = function (state, name, terminator, normalizeOnly
} else {
ret = CSL.Util.Names.doInitialize(state, lst, terminator);
}
ret = ret.replace(/\u2013([a-z])/g, "-$1")
return ret;
};
CSL.Util.Names.doNormalize = function (state, namelist, terminator, mode) {