Fix disambiguation-related hang in citeproc-js

This reverts the fix for
https://github.com/Juris-M/citeproc-js/issues/171 to fix the hang in
https://github.com/Juris-M/citeproc-js/issues/179
This commit is contained in:
Dan Stillman 2021-03-23 03:31:22 -04:00
parent 8c341f2e26
commit f20263a50f

View file

@ -23748,9 +23748,10 @@ CSL.Registry.NameReg = function (state) {
}
// A hack. Safe if the name object is used only here, for disambiguation purposes.
if (state.opt["demote-non-dropping-particle"] === "never" && nameobj["non-dropping-particle"] && nameobj["family"]) {
// TEMP: Disabled due to https://github.com/Juris-M/citeproc-js/issues/179
/*if (state.opt["demote-non-dropping-particle"] === "never" && nameobj["non-dropping-particle"] && nameobj["family"]) {
nameobj["family"] = nameobj["non-dropping-particle"] + " " + nameobj["family"];
}
}*/
//CSL.debug("INS");
set_keys(this.state, "" + item_id, nameobj);