@farming-labs/docs 0.0.62 → 0.0.64
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.
- package/dist/server.mjs +1 -1
- package/package.json +1 -1
package/dist/server.mjs
CHANGED
|
@@ -318,7 +318,7 @@ function parseCssColor(value) {
|
|
|
318
318
|
}
|
|
319
319
|
const hslMatch = normalized.match(/^hsla?\((.+)\)$/);
|
|
320
320
|
if (hslMatch) {
|
|
321
|
-
const [h, s, l] = hslMatch[1].split(/[\s
|
|
321
|
+
const [h, s, l] = hslMatch[1].split(/[\s,/]+/).filter(Boolean).slice(0, 3);
|
|
322
322
|
const hue = Number.parseFloat(h);
|
|
323
323
|
const saturation = Number.parseFloat(s.replace("%", ""));
|
|
324
324
|
const lightness = Number.parseFloat(l.replace("%", ""));
|