diff --git a/src/extension.ts b/src/extension.ts index 06afef6bf265763857bc6b71be4046710558d4a7..c4b9f975d9df80c4a509a2806dac5e14970c041d 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()