@unocss/core 66.7.0 → 66.7.2-beta.1

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 +2 -2
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -316,7 +316,7 @@ function isStaticShortcut(sc) {
316
316
  //#region src/utils/variant-group.ts
317
317
  const regexCache = {};
318
318
  function makeRegexClassGroup(separators = ["-", ":"]) {
319
- const key = separators.join("|");
319
+ const key = separators.map((s) => escapeRegExp(s)).join("|");
320
320
  if (!regexCache[key]) regexCache[key] = new RegExp(`((?:[!@*<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${key})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`, "gm");
321
321
  regexCache[key].lastIndex = 0;
322
322
  return regexCache[key];
@@ -602,7 +602,7 @@ function definePreset(preset) {
602
602
  }
603
603
  //#endregion
604
604
  //#region package.json
605
- var version = "66.7.0";
605
+ var version = "66.7.2-beta.1";
606
606
  //#endregion
607
607
  //#region src/generator.ts
608
608
  const symbols = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/core",
3
3
  "type": "module",
4
- "version": "66.7.0",
4
+ "version": "66.7.2-beta.1",
5
5
  "description": "The instant on-demand Atomic CSS engine.",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",