update class attribute regex
parent
99febcd4c0
commit
e6a371921f
|
@ -159,7 +159,7 @@ function provideClassAttributeCompletions(
|
|||
end: position,
|
||||
})
|
||||
|
||||
const match = findLast(/(?:\b|:)class(?:Name)?=['"`{]/gi, str)
|
||||
const match = findLast(/(?:\s|:)class(?:Name)?=['"`{]/gi, str)
|
||||
|
||||
if (match === null) {
|
||||
return null
|
||||
|
|
|
@ -135,7 +135,7 @@ export function findClassListsInHtmlRange(
|
|||
range?: Range
|
||||
): DocumentClassList[] {
|
||||
const text = doc.getText(range)
|
||||
const matches = findAll(/(?:\b|:)class(?:Name)?=['"`{]/g, text)
|
||||
const matches = findAll(/(?:\s|:)class(?:Name)?=['"`{]/g, text)
|
||||
const result: DocumentClassList[] = []
|
||||
|
||||
matches.forEach((match) => {
|
||||
|
|
Loading…
Reference in New Issue