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 861e636 commit eed2319Copy full SHA for eed2319
packages/tailwindcss-language-service/src/util/getVariantsFromClassName.ts
@@ -63,6 +63,10 @@ export function getVariantsFromClassName(
63
for (let part of parts) {
64
if (!isValidVariant(part)) break
65
66
+ // We might see something like `bg-[` and consider it valid before v4.1.16
67
+ // This is a fix for that behavior
68
+ if (part.endsWith('-[')) break
69
+
70
variants.add(part)
71
offset += part.length + state.separator!.length
72
}
0 commit comments