From c73a5f76dc81f60971b962de2142d3829950a443 Mon Sep 17 00:00:00 2001 From: Oliver Trajceski Date: Thu, 28 Oct 2021 17:59:09 +0200 Subject: [PATCH] :bug: Rework expression for renaming node for dotted expressions (#2380) --- packages/workflow/src/Workflow.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/workflow/src/Workflow.ts b/packages/workflow/src/Workflow.ts index 7152cbac7b..860eaea0dd 100644 --- a/packages/workflow/src/Workflow.ts +++ b/packages/workflow/src/Workflow.ts @@ -415,8 +415,7 @@ export class Workflow { const currentNameEscaped = currentName.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); parameterValue = parameterValue.replace( - // eslint-disable-next-line no-useless-escape - new RegExp(`(\\$node(\.|\\["|\\[\'))${currentNameEscaped}((\s/g|"\\]|\'\\]))`, 'g'), + new RegExp(`(\\$node(\\.|\\["|\\['))${currentNameEscaped}((\\.|"\\]|'\\]))`, 'g'), `$1${newName}$3`, ); }