@unocss/core 0.51.11 → 0.51.13
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 +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
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(`((?:[
|
|
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"'
|
|
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.
|
|
485
|
+
const version = "0.51.13";
|
|
486
486
|
|
|
487
487
|
class UnoGenerator {
|
|
488
488
|
constructor(userConfig = {}, defaults = {}) {
|
package/dist/index.d.ts
CHANGED
|
@@ -488,7 +488,7 @@ interface ConfigBase<Theme extends {} = {}> {
|
|
|
488
488
|
*
|
|
489
489
|
* Pass `null` or `false` to disable the default extractor.
|
|
490
490
|
*
|
|
491
|
-
* @see https://github.com/
|
|
491
|
+
* @see https://github.com/unocss/unocss/blob/main/packages/core/src/extractors/split.ts
|
|
492
492
|
* @default import('@unocss/core').defaultExtractor
|
|
493
493
|
*/
|
|
494
494
|
extractorDefault?: Extractor | null | false;
|
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(`((?:[
|
|
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"'
|
|
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.
|
|
481
|
+
const version = "0.51.13";
|
|
482
482
|
|
|
483
483
|
class UnoGenerator {
|
|
484
484
|
constructor(userConfig = {}, defaults = {}) {
|