1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
diff --git a/src/extension.ts b/src/extension.ts
index c4b9f975d9df80c4a509a2806dac5e14970c041d..06afef6bf265763857bc6b71be4046710558d4a7 100644
--- a/src/extension.ts
+++ b/src/extension.ts
@@ -326,7 +326,7 @@ 'typescriptreact',
'javascript',
'javascriptreact'
],
- /\bclass(Name)?=["']([^"']*)/, // /\bclass(Name)?=(["'])(?!.*?\2)/
+ /\bclass(Name)?=["']([^"']*)$/, // /\bclass(Name)?=(["'])(?!.*?\2)/
["'", '"', ' ', separator],
tailwind.config
)
@@ -391,7 +391,7 @@ )
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()
|