Skip to content

Commit

Permalink
Fixed #6458, named color deduction was case sensitive.
Browse files Browse the repository at this point in the history
  • Loading branch information
TorsteinHonsi committed Mar 15, 2017
1 parent 4ed069c commit 965d5db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/parts/Color.js
Expand Up @@ -68,7 +68,11 @@ H.Color.prototype = {
parser,
len;

this.input = input = this.names[input] || input;
this.input = input = this.names[
input && input.toLowerCase
? input.toLowerCase()
: ''
] || input;

// Gradients
if (input && input.stops) {
Expand Down

0 comments on commit 965d5db

Please sign in to comment.