Skip to content

Commit

Permalink
Update regex
Browse files Browse the repository at this point in the history
  • Loading branch information
ecmel committed Jan 8, 2021
1 parent 1ef9c7a commit 10831e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/completion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export class SelectorCompletionItemProvider implements CompletionItemProvider, D
document.positionAt(offset),
document.positionAt(findAttribute.lastIndex - 1)));

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

let value;

Expand Down

0 comments on commit 10831e2

Please sign in to comment.