Skip to content

Commit e94eb53

Browse files
committed
fix: handle semicolon
1 parent ca215f7 commit e94eb53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/tailwindcss-language-service/src/annotation.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ export async function updateAnnotation(state: State, document: TextDocument): Pr
1717
extractorContext.tailwindConfig.prefix = state.jitContext.tailwindConfig.prefix
1818
}
1919

20-
const classNames = state.modules.defaultExtractor.module(extractorContext)(text) as string[]
20+
const classNames = (
21+
state.modules.defaultExtractor.module(extractorContext)(text) as string[]
22+
).map((className) => className.replace(/;$/, ''))
2123

2224
const result: Range[] = []
2325

0 commit comments

Comments
 (0)