pasika 0.10.139 → 0.10.140
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.
|
@@ -12588,7 +12588,7 @@ function numericPart(value) {
|
|
|
12588
12588
|
return sign + number + (match.groups.unit === "%" ? "pct" : match.groups.unit ?? "");
|
|
12589
12589
|
}
|
|
12590
12590
|
function simpleValueSlug(value) {
|
|
12591
|
-
const words = value.trim().replace(/,/gu, "
|
|
12591
|
+
const words = value.trim().replace(/,/gu, "_").split(/[_\s]+/u).filter(Boolean);
|
|
12592
12592
|
if (words.length === 0 || words.length > 8) return void 0;
|
|
12593
12593
|
const parts = [];
|
|
12594
12594
|
for (const word of words) {
|
|
@@ -13355,9 +13355,10 @@ function readInventory(files) {
|
|
|
13355
13355
|
}
|
|
13356
13356
|
for (const plainClass of classSelectors(css2)) plainClasses.add(plainClass);
|
|
13357
13357
|
for (const block of themeBlocks(css2)) {
|
|
13358
|
-
|
|
13359
|
-
if (
|
|
13360
|
-
|
|
13358
|
+
const declarations = block.replace(/\/\*[\s\S]*?\*\//gu, "");
|
|
13359
|
+
if (/--\*\s*:\s*initial\b/.test(declarations)) defaultsReset = true;
|
|
13360
|
+
if (/(?:^|[;{])\s*--spacing\s*:/.test(declarations)) baseSpacing = true;
|
|
13361
|
+
for (const decl of declarations.matchAll(/--(?<namespace>[a-z][a-z0-9]*)-(?<token>[a-z0-9][a-z0-9_-]*)\s*:/g)) {
|
|
13361
13362
|
let namespace = decl.groups?.namespace;
|
|
13362
13363
|
let token = decl.groups?.token;
|
|
13363
13364
|
if (namespace === "background" && token?.startsWith("image-")) {
|