@unocss/core 0.51.12 → 0.52.0

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
@@ -227,7 +227,7 @@ const regexCache = {};
227
227
  function makeRegexClassGroup(separators = ["-", ":"]) {
228
228
  const key = separators.join("|");
229
229
  if (!regexCache[key])
230
- regexCache[key] = new RegExp(`((?:[!@\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${key})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`, "gm");
230
+ regexCache[key] = new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${key})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`, "gm");
231
231
  regexCache[key].lastIndex = 0;
232
232
  return regexCache[key];
233
233
  }
@@ -331,7 +331,7 @@ function createValueHandler(handlers) {
331
331
  }
332
332
 
333
333
  const defaultSplitRE = /[\\:]?[\s'"`;{}]+/g;
334
- const splitWithVariantGroupRE = /([\\:]?[\s"'`;<>*]|:\(|\)"|\)\s)/g;
334
+ const splitWithVariantGroupRE = /([\\:]?[\s"'`;<>]|:\(|\)"|\)\s)/g;
335
335
  function splitCode(code) {
336
336
  return [...new Set(code.split(defaultSplitRE))];
337
337
  }
@@ -482,7 +482,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
482
482
  return resolved;
483
483
  }
484
484
 
485
- const version = "0.51.12";
485
+ const version = "0.52.0";
486
486
 
487
487
  class UnoGenerator {
488
488
  constructor(userConfig = {}, defaults = {}) {
package/dist/index.mjs CHANGED
@@ -223,7 +223,7 @@ const regexCache = {};
223
223
  function makeRegexClassGroup(separators = ["-", ":"]) {
224
224
  const key = separators.join("|");
225
225
  if (!regexCache[key])
226
- regexCache[key] = new RegExp(`((?:[!@\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${key})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`, "gm");
226
+ regexCache[key] = new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${key})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`, "gm");
227
227
  regexCache[key].lastIndex = 0;
228
228
  return regexCache[key];
229
229
  }
@@ -327,7 +327,7 @@ function createValueHandler(handlers) {
327
327
  }
328
328
 
329
329
  const defaultSplitRE = /[\\:]?[\s'"`;{}]+/g;
330
- const splitWithVariantGroupRE = /([\\:]?[\s"'`;<>*]|:\(|\)"|\)\s)/g;
330
+ const splitWithVariantGroupRE = /([\\:]?[\s"'`;<>]|:\(|\)"|\)\s)/g;
331
331
  function splitCode(code) {
332
332
  return [...new Set(code.split(defaultSplitRE))];
333
333
  }
@@ -478,7 +478,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
478
478
  return resolved;
479
479
  }
480
480
 
481
- const version = "0.51.12";
481
+ const version = "0.52.0";
482
482
 
483
483
  class UnoGenerator {
484
484
  constructor(userConfig = {}, defaults = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/core",
3
- "version": "0.51.12",
3
+ "version": "0.52.0",
4
4
  "description": "The instant on-demand Atomic CSS engine.",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",