1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-09-20 01:19:07 +03:00

🐛 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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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`,
);
}