color-string
Advanced tools
Comparing version 1.5.3 to 1.5.4
@@ -72,3 +72,3 @@ /* MIT license */ | ||
if (hexAlpha) { | ||
rgb[3] = Math.round((parseInt(hexAlpha, 16) / 255) * 100) / 100; | ||
rgb[3] = parseInt(hexAlpha, 16) / 255; | ||
} | ||
@@ -84,3 +84,3 @@ } else if (match = string.match(abbr)) { | ||
if (hexAlpha) { | ||
rgb[3] = Math.round((parseInt(hexAlpha + hexAlpha, 16) / 255) * 100) / 100; | ||
rgb[3] = parseInt(hexAlpha + hexAlpha, 16) / 255; | ||
} | ||
@@ -87,0 +87,0 @@ } else if (match = string.match(rgba)) { |
{ | ||
"name": "color-string", | ||
"description": "Parser and generator for CSS color strings", | ||
"version": "1.5.3", | ||
"version": "1.5.4", | ||
"author": "Heather Arthur <fayearthur@gmail.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9997