Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
fix html class attr regex
Brad Cornes <bradlc41@gmail.com>
6 years ago
1 changed files, 2 additions(+), 2 deletions(-)
M src/extension.ts -> src/extension.ts
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()