Skip to content

Commit 55bd390

Browse files
committed
Released 1.4.3
1 parent 9ff4970 commit 55bd390

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
All notable changes to the extension will be documented in this file.
44

5+
## [1.4.3] - 2020-12-27
6+
7+
- Fixed regex.
8+
9+
## [1.4.2] - 2020-12-26
10+
11+
- Update documentation.
12+
513
## [1.4.1] - 2020-12-26
614

715
- Validates startup and newly opened documents.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-html-css",
33
"displayName": "HTML CSS Support",
44
"description": "CSS Intellisense for HTML",
5-
"version": "1.4.2",
5+
"version": "1.4.3",
66
"publisher": "ecmel",
77
"license": "MIT",
88
"homepage": "https://github.com/ecmel/vscode-html-css",

src/completion.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,12 +312,12 @@ export class SelectorCompletionItemProvider implements CompletionItemProvider, D
312312
- attribute[3].length
313313
+ attribute[3].indexOf(attribute[2]);
314314

315-
const findValue = /([^\s]+)/gi;
315+
const findSelector = /([\w\-]+)(?![\w\-\s]*[%}]+)/gi;
316316

317317
let value;
318318

319-
while ((value = findValue.exec(attribute[3])) !== null) {
320-
const anchor = findValue.lastIndex + offset;
319+
while ((value = findSelector.exec(attribute[3])) !== null) {
320+
const anchor = findSelector.lastIndex + offset;
321321
const end = document.positionAt(anchor);
322322
const start = document.positionAt(anchor - value[1].length);
323323

0 commit comments

Comments
 (0)