From f08f280e4f0c27c16b235497cfb080f12666ac5b Mon Sep 17 00:00:00 2001 From: ecmel Date: Sun, 27 Dec 2020 22:20:17 +0300 Subject: [PATCH] Released 1.4.4 --- CHANGELOG.md | 4 ++++ package.json | 2 +- src/completion.ts | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 308197e..e1dce5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to the extension will be documented in this file. +## [1.4.4] - 2020-12-27 + +- Fixed regex. + ## [1.4.3] - 2020-12-27 - Fixed regex. diff --git a/package.json b/package.json index 725c1fd..0959916 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-html-css", "displayName": "HTML CSS Support", "description": "CSS Intellisense for HTML", - "version": "1.4.3", + "version": "1.4.4", "publisher": "ecmel", "license": "MIT", "homepage": "https://github.com/ecmel/vscode-html-css", diff --git a/src/completion.ts b/src/completion.ts index 68be18e..036a36a 100644 --- a/src/completion.ts +++ b/src/completion.ts @@ -312,7 +312,7 @@ export class SelectorCompletionItemProvider implements CompletionItemProvider, D - attribute[3].length + attribute[3].indexOf(attribute[2]); - const findSelector = /([\w\-]+)(?![\w\-\s]*[%}]+)/gi; + const findSelector = /([a-zA-Z0-9_\-]+)(?![^%(){}[\]]*[%)}\]]+)/gi; let value;