diff --git a/src/extension.ts b/src/extension.ts index fd552df0330b3610650c27f8cfbc485a0fb6f18f..1766ec50b831b28d4806907e5645f3bf0c1eefcd 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -130,7 +130,7 @@ } else if (languages.indexOf('html') !== -1) { // match emmet style syntax // e.g. .flex.items-center let lineText = text.split('\n').pop() - matches = lineText.match(/\.([^()#>*^ \[\]=$@{}]*)$/i) + matches = lineText.match(/^\s*[a-z-]*\.(.*?)$/i) let parts = matches[matches.length - 1].split('.') str = parts[parts.length - 1] }