Skip to content

Commit

Permalink
fix(nuxt): fix the regression caused by unocss#1921 (unocss#2058)
Browse files Browse the repository at this point in the history
  • Loading branch information
sibbng authored and praburangki committed Jan 12, 2023
1 parent ecebd0f commit c144cb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/preset-attributify/src/extractor.ts
Original file line number Diff line number Diff line change
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 c144cb2

Please sign in to comment.