Skip to content

Commit 7b63274

Browse files
committed
Simplify.
1 parent bc75ddb commit 7b63274

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

d3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8537,7 +8537,7 @@ d3 = function() {
85378537
c = template.charCodeAt(i++);
85388538
if (c === 37) {
85398539
t = template.charAt(i++);
8540-
p = d3_time_parsers[t === "0" || t === "_" || t === "-" ? template.charAt(i++) : t];
8540+
p = d3_time_parsers[t in d3_time_formatPads ? template.charAt(i++) : t];
85418541
if (!p || (j = p(date, string, j)) < 0) return -1;
85428542
} else if (c != string.charCodeAt(j++)) {
85438543
return -1;

0 commit comments

Comments
 (0)