fix html class attr regex

master
Brad Cornes 2018-05-28 18:00:45 +01:00
parent 7c361e587f
commit dad12aa7c9
1 changed files with 2 additions and 2 deletions

View File

@ -326,7 +326,7 @@ class TailwindIntellisense {
'javascript',
'javascriptreact'
],
/\bclass(Name)?=["']([^"']*)/, // /\bclass(Name)?=(["'])(?!.*?\2)/
/\bclass(Name)?=["']([^"']*)$/, // /\bclass(Name)?=(["'])(?!.*?\2)/
["'", '"', ' ', separator],
tailwind.config
)
@ -391,7 +391,7 @@ class TailwindIntellisense {
const text2: string = document.getText(range2)
let str = text1 + text2.substr(text1.length).match(/^([^"' ]*)/)[0]
let matches = str.match(/\bclass(Name)?=["']([^"']*)/)
let matches = str.match(/\bclass(Name)?=["']([^"']*)$/)
if (matches && matches[2]) {
let className = matches[2].split(' ').pop()