@unocss/preset-wind 0.22.4 → 0.22.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 CHANGED
@@ -517,8 +517,8 @@ const variablesAbbrMap = {
517
517
  "write-orient": "text-orientation"
518
518
  };
519
519
  const cssVariables = [
520
- [/^([^$]+)(?<=-)\$(.+)$/, ([, name, varname]) => {
521
- const prop = variablesAbbrMap[name.slice(0, -1)];
520
+ [/^(.+?)-\$(.+)$/, ([, name, varname]) => {
521
+ const prop = variablesAbbrMap[name];
522
522
  if (prop)
523
523
  return { [prop]: `var(--${varname})` };
524
524
  }]
package/dist/index.mjs CHANGED
@@ -513,8 +513,8 @@ const variablesAbbrMap = {
513
513
  "write-orient": "text-orientation"
514
514
  };
515
515
  const cssVariables = [
516
- [/^([^$]+)(?<=-)\$(.+)$/, ([, name, varname]) => {
517
- const prop = variablesAbbrMap[name.slice(0, -1)];
516
+ [/^(.+?)-\$(.+)$/, ([, name, varname]) => {
517
+ const prop = variablesAbbrMap[name];
518
518
  if (prop)
519
519
  return { [prop]: `var(--${varname})` };
520
520
  }]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-wind",
3
- "version": "0.22.4",
3
+ "version": "0.22.5",
4
4
  "description": "Tailwind / Windi CSS compact preset for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -35,8 +35,8 @@
35
35
  "*.css"
36
36
  ],
37
37
  "dependencies": {
38
- "@unocss/core": "0.22.4",
39
- "@unocss/preset-mini": "0.22.4"
38
+ "@unocss/core": "0.22.5",
39
+ "@unocss/preset-mini": "0.22.5"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "unbuild",