Refresh citeproc-js version 1.0.349

This commit is contained in:
Frank Bennett 2012-06-21 19:36:52 +09:00 committed by Simon Kornblith
parent 7f0c8f3a4d
commit 4a8831b929

View File

@ -6719,9 +6719,10 @@ CSL.NameOutput.prototype._isRomanesque = function (name) {
if (!ret && name.given && name.given.match(CSL.STARTSWITH_ROMANESQUE_REGEXP)) {
ret = 1;
}
if (ret == 2 && name.multi && name.multi.main) {
var top_locale = name.multi.main.slice(0, 2);
if (!top_locale && this.Item.language) {
if (ret == 2) {
if (name.multi && name.multi.main) {
var top_locale = name.multi.main.slice(0, 2);
} else if (this.Item.language) {
top_locale = this.Item.language.slice(0, 2);
}
if (["ja", "zh"].indexOf(top_locale) > -1) {