@unocss/core 66.6.1 → 66.6.3
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 +3 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -329,7 +329,7 @@ function isStaticShortcut(sc) {
|
|
|
329
329
|
const regexCache = {};
|
|
330
330
|
function makeRegexClassGroup(separators = ["-", ":"]) {
|
|
331
331
|
const key = separators.join("|");
|
|
332
|
-
if (!regexCache[key]) regexCache[key] = new RegExp(`((?:[
|
|
332
|
+
if (!regexCache[key]) regexCache[key] = new RegExp(`((?:[!@*<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${key})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`, "gm");
|
|
333
333
|
regexCache[key].lastIndex = 0;
|
|
334
334
|
return regexCache[key];
|
|
335
335
|
}
|
|
@@ -361,7 +361,7 @@ function parseVariantGroup(str, separators = ["-", ":"], depth = 5) {
|
|
|
361
361
|
className: itemMatch[0]
|
|
362
362
|
}];
|
|
363
363
|
for (const item of innerItems) {
|
|
364
|
-
item.className = item.className === "~" ? pre : item.className.replace(/^(!?)(.*)/, `$1${pre}${sep}$2`);
|
|
364
|
+
item.className = item.className === "~" ? sep === ":" ? `${pre}${sep}~` : pre : item.className.replace(/^(!?)(.*)/, `$1${pre}${sep}$2`);
|
|
365
365
|
group.items.push(item);
|
|
366
366
|
}
|
|
367
367
|
}
|
|
@@ -617,7 +617,7 @@ function definePreset(preset) {
|
|
|
617
617
|
|
|
618
618
|
//#endregion
|
|
619
619
|
//#region package.json
|
|
620
|
-
var version = "66.6.
|
|
620
|
+
var version = "66.6.3";
|
|
621
621
|
|
|
622
622
|
//#endregion
|
|
623
623
|
//#region src/generator.ts
|