mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-07 02:41:12 +08:00
Merge now copies anchor names
This commit is contained in:
@@ -132,11 +132,11 @@ b:
|
||||
},
|
||||
},
|
||||
{
|
||||
description: "Merge does not copy anchor names",
|
||||
description: "Merge copies anchor names",
|
||||
document: `{a: {c: &cat frog}, b: {f: *cat}, c: {g: thongs}}`,
|
||||
expression: `.c * .a`,
|
||||
expected: []string{
|
||||
"D0, P[c], (!!map)::{g: thongs, c: frog}\n",
|
||||
"D0, P[c], (!!map)::{g: thongs, c: &cat frog}\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user