From 4d19f881e97b4b86fced099332babaa08f70abb8 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Mon, 10 Oct 2016 11:10:36 +0100 Subject: [PATCH] Let change node set type if total match remove unnecessary 2 step move when not required. add test for moving sub property up to main property --- nodes/core/logic/15-change.html | 12 +++++++----- nodes/core/logic/15-change.js | 13 +++++++------ test/nodes/core/logic/15-change_spec.js | 21 ++++++++++++++++++++- 3 files changed, 34 insertions(+), 12 deletions(-) diff --git a/nodes/core/logic/15-change.html b/nodes/core/logic/15-change.html index b6b6781c6..0425946a8 100644 --- a/nodes/core/logic/15-change.html +++ b/nodes/core/logic/15-change.html @@ -35,9 +35,11 @@
  • Set - set a property. The value can be a variety of different types, or can be taken from an existing message or context property.
  • Change - search & replace parts of the property. If regular expressions - are enabled, the replace with property can include capture groups, for example $1
  • + are enabled, the replace with property can include capture groups, for + example $1. Replace will only change the type if there + is a complete match.
  • Delete - delete a property.
  • -
  • Move - move or rename a property. Equivalent to set and delete in one operation. +
  • Move - move or rename a property. @@ -135,7 +137,7 @@ var selectField = $('