@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.
- package/dist/index.mjs +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.
|
|
605
|
+
var version = "66.7.2-beta.1";
|
|
606
606
|
//#endregion
|
|
607
607
|
//#region src/generator.ts
|
|
608
608
|
const symbols = {
|