Second part of numeric-leading-zeros fix
This commit is contained in:
parent
9b4eb42c29
commit
f3ba225f6f
|
@ -986,7 +986,7 @@ Zotero.CSL.prototype._processElements = function(item, element, formattedString,
|
||||||
} else if(part == "day") {
|
} else if(part == "day") {
|
||||||
string = string.toString();
|
string = string.toString();
|
||||||
if(newForm == "numeric-leading-zeros"
|
if(newForm == "numeric-leading-zeros"
|
||||||
&& string.length() == 1) {
|
&& string.length == 1) {
|
||||||
string = "0" + string;
|
string = "0" + string;
|
||||||
} else if (newForm == "ordinal") {
|
} else if (newForm == "ordinal") {
|
||||||
var ind = parseInt(string);
|
var ind = parseInt(string);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user