Skip to content

Commit

Permalink
fix(attributify): add stroke-opacity to default ignore attrs, close… (
Browse files Browse the repository at this point in the history
  • Loading branch information
CatsJuice committed Jun 28, 2023
1 parent ce10dd7 commit 72d4cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/preset-attributify/src/extractor.ts
Expand Up @@ -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
Expand Down

0 comments on commit 72d4cff

Please sign in to comment.