@jiaminghi/color
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -0,1 +1,7 @@ | ||
# 0.0.6-alpha (2019-06-13) | ||
### Bug Fixes | ||
- **getOpacity:** Fix the exception caused by the decimal in the rgba color (Like 'rgba(123.3333, 111, 111, 0.323)'). | ||
# 0.0.5-alpha (2019-06-06) | ||
@@ -2,0 +8,0 @@ |
@@ -144,3 +144,3 @@ "use strict"; | ||
if (!isRgba) return 1; | ||
return Number(color.replace(/^(rgba\()|(\s*\d+\s*,){3}|(\))/g, '')); | ||
return Number(color.split(',').slice(-1)[0].replace(/[)|\s]/g, '')); | ||
} | ||
@@ -147,0 +147,0 @@ /** |
{ | ||
"name": "@jiaminghi/color", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"author": "JiaMing <743192023@qq.com>", | ||
@@ -5,0 +5,0 @@ "description": "Color extension", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21079
0