fix(editor): Allow special chars in node selector completion (#5196)
🐛 Widen regex
This commit is contained in:
@@ -65,7 +65,7 @@ export const itemIndexCompletions = (Vue as CodeNodeEditorMixin).extend({
|
|||||||
selectorCompletions(context: CompletionContext, matcher: string | null = null) {
|
selectorCompletions(context: CompletionContext, matcher: string | null = null) {
|
||||||
const pattern =
|
const pattern =
|
||||||
matcher === null
|
matcher === null
|
||||||
? /\$\((?<quotedNodeName>['"][\w\s]+['"])\)\..*/ // $('nodeName').
|
? /\$\((?<quotedNodeName>['"][\S\s]+['"])\)\..*/ // $('nodeName').
|
||||||
: new RegExp(`${matcher}\..*`);
|
: new RegExp(`${matcher}\..*`);
|
||||||
|
|
||||||
const preCursor = context.matchBefore(pattern);
|
const preCursor = context.matchBefore(pattern);
|
||||||
|
|||||||
Reference in New Issue
Block a user