🐛 Fixed Expression Renaming Bug (#2368)

* N8N-2551 - Fixed Expression Renaming Bug

* N8N-2551 - Format prettier
This commit is contained in:
Oliver Trajceski
2021-10-28 01:14:29 +02:00
committed by GitHub
parent ce066a160f
commit ba8c922604

View File

@@ -416,7 +416,7 @@ export class Workflow {
parameterValue = parameterValue.replace(
// eslint-disable-next-line no-useless-escape
new RegExp(`(\\$node(\.|\\["|\\[\'))${currentNameEscaped}((\.|"\\]|\'\\]))`, 'g'),
new RegExp(`(\\$node(\.|\\["|\\[\'))${currentNameEscaped}((\s/g|"\\]|\'\\]))`, 'g'),
`$1${newName}$3`,
);
}