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 3b95d8c commit d61966dCopy full SHA for d61966d
packages/tailwindcss-language-service/src/util/find.ts
@@ -40,7 +40,7 @@ export function getClassNamesInClassList(
40
const names: DocumentClassName[] = []
41
let index = 0
42
for (let i = 0; i < parts.length; i++) {
43
- if (i % 2 === 0 && !blocklist.includes(parts[i])) {
+ if (i % 2 === 0 && parts[i] && !blocklist.includes(parts[i])) {
44
const start = indexToPosition(classList, index)
45
const end = indexToPosition(classList, index + parts[i].length)
46
names.push({
0 commit comments