Skip to content

Commit 82a0f01

Browse files
committed
run make
1 parent f10946b commit 82a0f01

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

d3.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1677,7 +1677,9 @@
16771677
}
16781678
}
16791679
}
1680-
if (color = d3_rgb_names.get(format)) return rgb(color.r, color.g, color.b);
1680+
if (typeof format === "string") {
1681+
if (color = d3_rgb_names.get(format.toLowerCase())) return rgb(color.r, color.g, color.b);
1682+
}
16811683
if (format != null && format.charAt(0) === "#" && !isNaN(color = parseInt(format.slice(1), 16))) {
16821684
if (format.length === 4) {
16831685
r = (color & 3840) >> 4;

0 commit comments

Comments
 (0)