File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/tailwindcss-language-service/src Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ function provideClassAttributeCompletions(
159
159
end : position ,
160
160
} )
161
161
162
- const match = findLast ( / (?: \b | : ) c l a s s (?: N a m e ) ? = [ ' " ` { ] / gi, str )
162
+ const match = findLast ( / (?: \s | : ) c l a s s (?: N a m e ) ? = [ ' " ` { ] / gi, str )
163
163
164
164
if ( match === null ) {
165
165
return null
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ export function findClassListsInHtmlRange(
135
135
range ?: Range
136
136
) : DocumentClassList [ ] {
137
137
const text = doc . getText ( range )
138
- const matches = findAll ( / (?: \b | : ) c l a s s (?: N a m e ) ? = [ ' " ` { ] / g, text )
138
+ const matches = findAll ( / (?: \s | : ) c l a s s (?: N a m e ) ? = [ ' " ` { ] / g, text )
139
139
const result : DocumentClassList [ ] = [ ]
140
140
141
141
matches . forEach ( ( match ) => {
You can’t perform that action at this time.
0 commit comments