tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
diff --git a/src/extension.ts b/src/extension.ts
index 99d162933ee803a16a26301169a5628508dd54a0..34832a3333ea8024a169da7c9fadf44a9bdc4c0a 100644
--- a/src/extension.ts
+++ b/src/extension.ts
@@ -158,9 +158,9 @@ matches = currentWord.match(/^\.([^.()#>*^ \[\]=$@{}]*)$/)
if (!matches) {
matches = currentWord.match(
new RegExp(
- `^([A-Z][a-zA-Z0-9]*|[a-z][a-z0-9]*-[a-z0-9-]+|${htmlElements.join(
- '|'
- )}).*?\\.([^.()#>*^ \\[\\]=$@{}]*)$`
+ `^([A-Z][a-zA-Z0-9]*|[a-z][a-z0-9]*-[a-z0-9-]+|${htmlElements
+ .map(x => `${x}\\b`)
+ .join('|')}).*?\\.([^.()#>*^ \\[\\]=$@{}]*)$`
)
)
}