mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 05:17:28 -08:00
fix(editor): Allow special chars in node selector completion (#5196)
🐛 Widen regex
This commit is contained in:
parent
a89c9c68d1
commit
b718464b1f
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue