diff --git a/packages/preset-attributify/src/extractor.ts b/packages/preset-attributify/src/extractor.ts index b76d34be28..dd6d383afd 100644 --- a/packages/preset-attributify/src/extractor.ts +++ b/packages/preset-attributify/src/extractor.ts @@ -11,7 +11,7 @@ const splitterRE = /[\s'"`;]+/g const elementRE = /<[^>\s]*\s((?:'.*?'|".*?"|`.*?`|\{.*?\}|[^>]*?)*)/g const valuedAttributeRE = /([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-.~<]+)=?(?:["]([^"]*)["]|[']([^']*)[']|[{]([^}]*)[}])?/gms -export const defaultIgnoreAttributes = ['placeholder', 'fill', 'opacity'] +export const defaultIgnoreAttributes = ['placeholder', 'fill', 'opacity', 'stroke-opacity'] export function extractorAttributify(options?: AttributifyOptions): Extractor { const ignoreAttributes = options?.ignoreAttributes ?? defaultIgnoreAttributes