Skip to content

Commit

Permalink
rgbahex supports coercing colors leafo#153
Browse files Browse the repository at this point in the history
  • Loading branch information
leafo committed Apr 6, 2012
1 parent d5aa97c commit dd3fc8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lessc.inc.php
Expand Up @@ -1505,7 +1505,8 @@ function lib_isem($value) {
}

function lib_rgbahex($color) {
if ($color[0] != 'color')
$color = $this->coerceColor($color);
if (is_null($color))
$this->throwError("color expected for rgbahex");

return sprintf("#%02x%02x%02x%02x",
Expand Down

0 comments on commit dd3fc8b

Please sign in to comment.