Skip to content

Commit 10831e2

Browse files
committed
Update regex
1 parent 1ef9c7a commit 10831e2

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
@@ -247,7 +247,7 @@ export class SelectorCompletionItemProvider implements CompletionItemProvider, D
247247
document.positionAt(offset),
248248
document.positionAt(findAttribute.lastIndex - 1)));
249249

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

252252
let value;
253253

0 commit comments

Comments
 (0)