Skip to content

Commit

Permalink
fix(attributify)!: add fill and opacity to default ignore attrs, c…
Browse files Browse the repository at this point in the history
…lose #2104 (#2110)
  • Loading branch information
antfu committed Jan 25, 2023
1 parent f2d6b6c commit e3f3e71
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 = /<\w(?=.*>)[\w:\.$-]*\s((?:['"`\{].*?['"`\}]|.*?)*?)>/gs
const valuedAttributeRE = /([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-.]+)=?(?:["]([^"]*)["]|[']([^']*)[']|[{]([^}]*)[}])?/gms

export const defaultIgnoreAttributes = ['placeholder']
export const defaultIgnoreAttributes = ['placeholder', 'fill', 'opacity']

export const extractorAttributify = (options?: AttributifyOptions): Extractor => {
const ignoreAttributes = options?.ignoreAttributes ?? defaultIgnoreAttributes
Expand Down

0 comments on commit e3f3e71

Please sign in to comment.