@unocss/preset-attributify 0.29.3 → 0.29.6

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
@@ -10,7 +10,7 @@ const strippedPrefixes = [
10
10
  ];
11
11
  const splitterRE = /[\s'"`;]+/g;
12
12
  const elementRE = /<\w[\w:\.$-]*\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g;
13
- const valuedAttributeRE = /([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=(["'])([^\2]*?)\2)?/g;
13
+ const valuedAttributeRE = /([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-]+)(?:=(["'])([^\2]*?)\2)?/g;
14
14
  const extractorAttributify = (options) => {
15
15
  const ignoreAttributes = options?.ignoreAttributes ?? [];
16
16
  const nonValuedAttribute = options?.nonValuedAttribute ?? true;
@@ -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
@@ -6,7 +6,7 @@ const strippedPrefixes = [
6
6
  ];
7
7
  const splitterRE = /[\s'"`;]+/g;
8
8
  const elementRE = /<\w[\w:\.$-]*\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g;
9
- const valuedAttributeRE = /([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=(["'])([^\2]*?)\2)?/g;
9
+ const valuedAttributeRE = /([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-]+)(?:=(["'])([^\2]*?)\2)?/g;
10
10
  const extractorAttributify = (options) => {
11
11
  const ignoreAttributes = options?.ignoreAttributes ?? [];
12
12
  const nonValuedAttribute = options?.nonValuedAttribute ?? true;
@@ -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.29.3",
3
+ "version": "0.29.6",
4
4
  "description": "Attributify preset for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -33,7 +33,7 @@
33
33
  ],
34
34
  "sideEffects": false,
35
35
  "dependencies": {
36
- "@unocss/core": "0.29.3"
36
+ "@unocss/core": "0.29.6"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "unbuild",