@unocss/core 0.44.4 → 0.44.5
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/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -233,7 +233,7 @@ function expandVariantGroup(str, seperators = ["-", ":"]) {
|
|
|
233
233
|
content = content.replace(regexClassGroup, (from, pre, sep, body) => {
|
|
234
234
|
if (!seperators.includes(sep))
|
|
235
235
|
return from;
|
|
236
|
-
return body.split(/\s/g).map((i) => i === "~" ? pre : i.replace(/^(!?)(.*)/, `$1${pre}${sep}$2`)).join(" ");
|
|
236
|
+
return body.split(/\s/g).filter(Boolean).map((i) => i === "~" ? pre : i.replace(/^(!?)(.*)/, `$1${pre}${sep}$2`)).join(" ");
|
|
237
237
|
});
|
|
238
238
|
hasChanged = content !== before;
|
|
239
239
|
} while (hasChanged);
|
|
@@ -414,7 +414,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
|
|
|
414
414
|
};
|
|
415
415
|
}
|
|
416
416
|
|
|
417
|
-
const version = "0.44.
|
|
417
|
+
const version = "0.44.5";
|
|
418
418
|
|
|
419
419
|
class UnoGenerator {
|
|
420
420
|
constructor(userConfig = {}, defaults = {}) {
|
package/dist/index.mjs
CHANGED
|
@@ -229,7 +229,7 @@ function expandVariantGroup(str, seperators = ["-", ":"]) {
|
|
|
229
229
|
content = content.replace(regexClassGroup, (from, pre, sep, body) => {
|
|
230
230
|
if (!seperators.includes(sep))
|
|
231
231
|
return from;
|
|
232
|
-
return body.split(/\s/g).map((i) => i === "~" ? pre : i.replace(/^(!?)(.*)/, `$1${pre}${sep}$2`)).join(" ");
|
|
232
|
+
return body.split(/\s/g).filter(Boolean).map((i) => i === "~" ? pre : i.replace(/^(!?)(.*)/, `$1${pre}${sep}$2`)).join(" ");
|
|
233
233
|
});
|
|
234
234
|
hasChanged = content !== before;
|
|
235
235
|
} while (hasChanged);
|
|
@@ -410,7 +410,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
|
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
412
|
|
|
413
|
-
const version = "0.44.
|
|
413
|
+
const version = "0.44.5";
|
|
414
414
|
|
|
415
415
|
class UnoGenerator {
|
|
416
416
|
constructor(userConfig = {}, defaults = {}) {
|