@unocss/core 66.6.1 → 66.6.3

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.
Files changed (2) hide show
  1. package/dist/index.mjs +3 -3
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -329,7 +329,7 @@ function isStaticShortcut(sc) {
329
329
  const regexCache = {};
330
330
  function makeRegexClassGroup(separators = ["-", ":"]) {
331
331
  const key = separators.join("|");
332
- if (!regexCache[key]) regexCache[key] = new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${key})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`, "gm");
332
+ if (!regexCache[key]) regexCache[key] = new RegExp(`((?:[!@*<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${key})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`, "gm");
333
333
  regexCache[key].lastIndex = 0;
334
334
  return regexCache[key];
335
335
  }
@@ -361,7 +361,7 @@ function parseVariantGroup(str, separators = ["-", ":"], depth = 5) {
361
361
  className: itemMatch[0]
362
362
  }];
363
363
  for (const item of innerItems) {
364
- item.className = item.className === "~" ? pre : item.className.replace(/^(!?)(.*)/, `$1${pre}${sep}$2`);
364
+ item.className = item.className === "~" ? sep === ":" ? `${pre}${sep}~` : pre : item.className.replace(/^(!?)(.*)/, `$1${pre}${sep}$2`);
365
365
  group.items.push(item);
366
366
  }
367
367
  }
@@ -617,7 +617,7 @@ function definePreset(preset) {
617
617
 
618
618
  //#endregion
619
619
  //#region package.json
620
- var version = "66.6.1";
620
+ var version = "66.6.3";
621
621
 
622
622
  //#endregion
623
623
  //#region src/generator.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/core",
3
3
  "type": "module",
4
- "version": "66.6.1",
4
+ "version": "66.6.3",
5
5
  "description": "The instant on-demand Atomic CSS engine.",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",