We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a63cf59 commit cc6875cCopy full SHA for cc6875c
packages/preset-attributify/src/extractor.ts
@@ -58,7 +58,7 @@ export const extractorAttributify = (options?: AttributifyOptions): Extractor =>
58
const extractTernary = Array.from(content.matchAll(/(?:[\?:].*?)(["'])([^\1]*?)\1/gms))
59
.map(([,,v]) => v.split(splitterRE)).flat()
60
return (extractTernary.length ? extractTernary : content.split(splitterRE))
61
- .filter(Boolean)
+ .filter(v => Boolean(v) && v !== ':')
62
.map(v => `[${name}~="${v}"]`)
63
}
64
})
0 commit comments