@unocss/preset-attributify 66.6.7 → 66.6.8

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.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import * as _unocss_core0 from "@unocss/core";
1
+ import * as _$_unocss_core0 from "@unocss/core";
2
2
  import { AutoCompleteExtractor, Extractor, PresetOptions, VariantObject } from "@unocss/core";
3
3
 
4
4
  //#region src/types.d.ts
@@ -89,6 +89,6 @@ declare function variantAttributify(options?: AttributifyOptions): VariantObject
89
89
  *
90
90
  * @see https://unocss.dev/presets/attributify
91
91
  */
92
- declare const presetAttributify: _unocss_core0.PresetFactory<object, AttributifyOptions>;
92
+ declare const presetAttributify: _$_unocss_core0.PresetFactory<object, AttributifyOptions>;
93
93
  //#endregion
94
94
  export { AttributifyAttributes, AttributifyNames, AttributifyOptions, BasicAttributes, PseudoPrefix, SeparateEnabled, SpecialSingleWord, TwoStringsComposition, TwoStringsCompositionPrefix, TwoStringsCompositionSuffix, autocompleteExtractorAttributify, presetAttributify as default, presetAttributify, defaultIgnoreAttributes, extractorAttributify, variantAttributify, variantsRE };
package/dist/index.mjs CHANGED
@@ -26,7 +26,7 @@ function variantAttributify(options = {}) {
26
26
  const [, bodyVariant, bracketValue] = content.match(variantsValueRE) || [];
27
27
  if (bracketValue) return `${bodyVariant}${variants}${name}-${bracketValue}`;
28
28
  }
29
- if (variants && body.match(/^[\d.]+$/)) {
29
+ if (variants && /^[\d.]+$/.test(body)) {
30
30
  const variantParts = variants.split(/([^:]*:)/g).filter(Boolean);
31
31
  const _body = variantParts.pop() + body;
32
32
  const _variants = variantParts.join("");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/preset-attributify",
3
3
  "type": "module",
4
- "version": "66.6.7",
4
+ "version": "66.6.8",
5
5
  "description": "Attributify preset for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -29,7 +29,7 @@
29
29
  "dist"
30
30
  ],
31
31
  "dependencies": {
32
- "@unocss/core": "66.6.7"
32
+ "@unocss/core": "66.6.8"
33
33
  },
34
34
  "scripts": {
35
35
  "build": "tsdown",