Skip to content

Commit cc6875c

Browse files
authored
fix(nuxt): fix the regression caused by #1921 (#2058)
1 parent a63cf59 commit cc6875c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/preset-attributify/src/extractor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const extractorAttributify = (options?: AttributifyOptions): Extractor =>
5858
const extractTernary = Array.from(content.matchAll(/(?:[\?:].*?)(["'])([^\1]*?)\1/gms))
5959
.map(([,,v]) => v.split(splitterRE)).flat()
6060
return (extractTernary.length ? extractTernary : content.split(splitterRE))
61-
.filter(Boolean)
61+
.filter(v => Boolean(v) && v !== ':')
6262
.map(v => `[${name}~="${v}"]`)
6363
}
6464
})

0 commit comments

Comments
 (0)