Skip to content

Commit 669701f

Browse files
committed
Merge pull request #1803 from wareczek/patch-1
ability to insert uppercase color names
2 parents 0bc82a4 + 13635e7 commit 669701f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/less/tree/color.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ tree.Color.prototype = {
151151
};
152152

153153
tree.Color.fromKeyword = function(keyword) {
154+
keyword = keyword.toLowerCase();
155+
154156
if (tree.colors.hasOwnProperty(keyword)) {
155157
// detect named color
156158
return new(tree.Color)(tree.colors[keyword].slice(1));

0 commit comments

Comments
 (0)