@unocss/preset-attributify 0.22.1 → 0.22.5

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
@@ -42,7 +42,7 @@ const extractorAttributify = (options) => {
42
42
  };
43
43
  };
44
44
 
45
- const variantsRE = /^(.+\:\!?)?(.*?)$/;
45
+ const variantsRE = /^(?!\[(?:[^:]+):(?:.+)\]$)(.+:!?)?(.*)$/;
46
46
  const variantAttributify = (options = {}) => {
47
47
  const prefix = options.prefix ?? "un-";
48
48
  const prefixedOnly = options.prefixedOnly ?? false;
package/dist/index.mjs CHANGED
@@ -38,7 +38,7 @@ const extractorAttributify = (options) => {
38
38
  };
39
39
  };
40
40
 
41
- const variantsRE = /^(.+\:\!?)?(.*?)$/;
41
+ const variantsRE = /^(?!\[(?:[^:]+):(?:.+)\]$)(.+:!?)?(.*)$/;
42
42
  const variantAttributify = (options = {}) => {
43
43
  const prefix = options.prefix ?? "un-";
44
44
  const prefixedOnly = options.prefixedOnly ?? false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-attributify",
3
- "version": "0.22.1",
3
+ "version": "0.22.5",
4
4
  "description": "Attributify preset for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -33,7 +33,7 @@
33
33
  "dist"
34
34
  ],
35
35
  "dependencies": {
36
- "@unocss/core": "0.22.1"
36
+ "@unocss/core": "0.22.5"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "unbuild",