Skip to content

Commit c71f37e

Browse files
committed
Fixed selector regex
1 parent f08f280 commit c71f37e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/completion.ts

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

315-
const findSelector = /([a-zA-Z0-9_\-]+)(?![^%(){}[\]]*[%)}\]]+)/gi;
315+
const findSelector = /([a-zA-Z0-9_\-]+)(?![^(\[{]*[}\])])/gi;
316316

317317
let value;
318318

0 commit comments

Comments
 (0)