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(
338338 end : position ,
339339 } )
340340
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 )
342342
343343 if ( match === null ) {
344344 return null
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ async function findCustomClassLists(
174174
175175export function findClassListsInHtmlRange ( doc : TextDocument , range ?: Range ) : DocumentClassList [ ] {
176176 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 )
178178 const result : DocumentClassList [ ] = [ ]
179179
180180 matches . forEach ( ( match ) => {
You can’t perform that action at this time.
0 commit comments