@ant-design/fast-color
Advanced tools
Comparing version 1.2.1 to 1.2.3
@@ -13,6 +13,6 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
function splitColorStr(str, parseNum) { | ||
const match = str.match(/\d*\.?\d+%?/g); | ||
const numList = match ? match.map(item => parseFloat(item)) : []; | ||
const match = str.match(/\d*\.?\d+%?/g) || []; | ||
const numList = match.map(item => parseFloat(item)); | ||
for (let i = 0; i < 3; i += 1) { | ||
numList[i] = parseNum(numList[i], match[i], i); | ||
numList[i] = parseNum(numList[i] || 0, match[i] || '', i); | ||
} | ||
@@ -19,0 +19,0 @@ |
@@ -20,6 +20,6 @@ "use strict"; | ||
function splitColorStr(str, parseNum) { | ||
const match = str.match(/\d*\.?\d+%?/g); | ||
const numList = match ? match.map(item => parseFloat(item)) : []; | ||
const match = str.match(/\d*\.?\d+%?/g) || []; | ||
const numList = match.map(item => parseFloat(item)); | ||
for (let i = 0; i < 3; i += 1) { | ||
numList[i] = parseNum(numList[i], match[i], i); | ||
numList[i] = parseNum(numList[i] || 0, match[i] || '', i); | ||
} | ||
@@ -26,0 +26,0 @@ |
{ | ||
"name": "@ant-design/fast-color", | ||
"version": "1.2.1", | ||
"version": "1.2.3", | ||
"description": "fast and small color class", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
40809