Revert subtitle capitalization for AMA (added in 5.0.70)

https://forums.zotero.org/discussion/comment/337093/#Comment_337093
This commit is contained in:
Dan Stillman 2019-08-01 17:26:27 -04:00
parent 3af8f56c35
commit f776156fbd

View file

@ -649,7 +649,7 @@ Zotero.Style = function (style, path) {
this.locale = Zotero.Utilities.xpathText(doc, '/csl:style/@default-locale',
Zotero.Styles.ns) || null;
this._uppercaseSubtitles = false;
var uppercaseSubtitlesRE = /^apa($|-)|^(academy-of-management|american-medical-association)/;
var uppercaseSubtitlesRE = /^apa($|-)|^(academy-of-management)/;
var shortIDMatches = this.styleID.match(/\/?([^/]+)$/);
this._uppercaseSubtitles = !!shortIDMatches && uppercaseSubtitlesRE.test(shortIDMatches[1]);
this._class = doc.documentElement.getAttribute("class");