Skip to content

Commit

Permalink
fix root path in transform V2
Browse files Browse the repository at this point in the history
  • Loading branch information
simon louvet committed Mar 19, 2024
1 parent e182a8e commit 3c32a5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engine/utils/objectTransformationV2.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ module.exports = {
}
},
getValueFromSource(source,pullParams, pattern) {
if (pattern.localeCompare('$..') == 0) {
if (pattern.localeCompare('$..') == 0 || pattern.localeCompare('$') == 0) {
return source;
} else if (pattern.localeCompare('£..') == 0 || pattern.localeCompare('£') == 0) {
return pullParams;
} else {
let regexp = /\$\.(.*)/gm;
let arrayRegex = [...pattern.matchAll(regexp)];
Expand Down

0 comments on commit 3c32a5c

Please sign in to comment.