@leanix/components 0.4.680 → 0.4.682
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1819,6 +1819,9 @@ function getContrastColor(colorHex) {
|
|
|
1819
1819
|
}
|
|
1820
1820
|
}
|
|
1821
1821
|
function shorthandHexHandle(hex) {
|
|
1822
|
+
if (!hex || typeof hex !== 'string') {
|
|
1823
|
+
return '';
|
|
1824
|
+
}
|
|
1822
1825
|
const shorthandRegex = /^(#)([a-f\d])([a-f\d])([a-f\d])$/i;
|
|
1823
1826
|
const shorthand = hex.match(shorthandRegex);
|
|
1824
1827
|
if (shorthand) {
|