@unocss/core 0.45.7 → 0.45.12

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
@@ -223,7 +223,7 @@ function withLayer(layer, rules) {
223
223
  return rules;
224
224
  }
225
225
 
226
- const regexClassGroup = /((?:[!\w+:_/-]|\[&?>?:.+?\])+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;
226
+ const regexClassGroup = /((?:[!\w+:_/-]|\[&?>?:?.*\])+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;
227
227
  function expandVariantGroup(str, seperators = ["-", ":"]) {
228
228
  regexClassGroup.lastIndex = 0;
229
229
  let hasChanged = false;
@@ -284,7 +284,7 @@ function createValueHandler(handlers) {
284
284
  return handler;
285
285
  }
286
286
 
287
- const splitCode = (code) => code.split(/\\?[\s'"`;=]+/g).filter(isValidSelector);
287
+ const splitCode = (code) => code.split(/\\?[\s'"`;={}]+/g).filter(isValidSelector);
288
288
  const extractorSplit = {
289
289
  name: "split",
290
290
  order: 0,
@@ -417,7 +417,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
417
417
  };
418
418
  }
419
419
 
420
- const version = "0.45.7";
420
+ const version = "0.45.12";
421
421
 
422
422
  class UnoGenerator {
423
423
  constructor(userConfig = {}, defaults = {}) {
package/dist/index.mjs CHANGED
@@ -219,7 +219,7 @@ function withLayer(layer, rules) {
219
219
  return rules;
220
220
  }
221
221
 
222
- const regexClassGroup = /((?:[!\w+:_/-]|\[&?>?:.+?\])+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;
222
+ const regexClassGroup = /((?:[!\w+:_/-]|\[&?>?:?.*\])+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;
223
223
  function expandVariantGroup(str, seperators = ["-", ":"]) {
224
224
  regexClassGroup.lastIndex = 0;
225
225
  let hasChanged = false;
@@ -280,7 +280,7 @@ function createValueHandler(handlers) {
280
280
  return handler;
281
281
  }
282
282
 
283
- const splitCode = (code) => code.split(/\\?[\s'"`;=]+/g).filter(isValidSelector);
283
+ const splitCode = (code) => code.split(/\\?[\s'"`;={}]+/g).filter(isValidSelector);
284
284
  const extractorSplit = {
285
285
  name: "split",
286
286
  order: 0,
@@ -413,7 +413,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
413
413
  };
414
414
  }
415
415
 
416
- const version = "0.45.7";
416
+ const version = "0.45.12";
417
417
 
418
418
  class UnoGenerator {
419
419
  constructor(userConfig = {}, defaults = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/core",
3
- "version": "0.45.7",
3
+ "version": "0.45.12",
4
4
  "description": "The instant on-demand Atomic CSS engine.",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",