Skip to content

Commit

Permalink
fix(editor): Allow special chars in node selector completion (#5196)
Browse files Browse the repository at this point in the history
🐛 Widen regex
  • Loading branch information
ivov authored Jan 19, 2023
1 parent a89c9c6 commit b718464
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const itemIndexCompletions = (Vue as CodeNodeEditorMixin).extend({
selectorCompletions(context: CompletionContext, matcher: string | null = null) {
const pattern =
matcher === null
? /\$\((?<quotedNodeName>['"][\w\s]+['"])\)\..*/ // $('nodeName').
? /\$\((?<quotedNodeName>['"][\S\s]+['"])\)\..*/ // $('nodeName').
: new RegExp(`${matcher}\..*`);

const preCursor = context.matchBefore(pattern);
Expand Down

0 comments on commit b718464

Please sign in to comment.