Skip to content

Commit

Permalink
fix(nuxt): fix the regression caused by #1921 (#2058)
Browse files Browse the repository at this point in the history
  • Loading branch information
sibbng committed Jan 9, 2023
1 parent a63cf59 commit cc6875c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/preset-attributify/src/extractor.ts
Expand Up @@ -58,7 +58,7 @@ export const extractorAttributify = (options?: AttributifyOptions): Extractor =>
const extractTernary = Array.from(content.matchAll(/(?:[\?:].*?)(["'])([^\1]*?)\1/gms))
.map(([,,v]) => v.split(splitterRE)).flat()
return (extractTernary.length ? extractTernary : content.split(splitterRE))
.filter(Boolean)
.filter(v => Boolean(v) && v !== ':')
.map(v => `[${name}~="${v}"]`)
}
})
Expand Down

0 comments on commit cc6875c

Please sign in to comment.