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 @@ -338,7 +338,7 @@ function provideClassAttributeCompletions(
338
338
end : position ,
339
339
} )
340
340
341
- const match = findLast ( / (?: \s | : | \( ) (?: c l a s s (?: N a m e ) ? | \[ n g C l a s s \] ) = [ ' " ` { ] / gi, str )
341
+ const match = findLast ( / (?: \s | : | \( ) (?: c l a s s (?: N a m e ) ? | \[ n g C l a s s \] ) \s * = \s * [ ' " ` { ] / gi, str )
342
342
343
343
if ( match === null ) {
344
344
return null
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ async function findCustomClassLists(
174
174
175
175
export function findClassListsInHtmlRange ( doc : TextDocument , range ?: Range ) : DocumentClassList [ ] {
176
176
const text = doc . getText ( range )
177
- const matches = findAll ( / (?: \s | : | \( ) (?: c l a s s (?: N a m e ) ? | \[ n g C l a s s \] ) = [ ' " ` { ] / g , text )
177
+ const matches = findAll ( / (?: \s | : | \( ) (?: c l a s s (?: N a m e ) ? | \[ n g C l a s s \] ) \s * = \s * [ ' " ` { ] / gi , text )
178
178
const result : DocumentClassList [ ] = [ ]
179
179
180
180
matches . forEach ( ( match ) => {
You can’t perform that action at this time.
0 commit comments