mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-05 17:36:59 +08:00
Length (and some other operators) should not include head/foot comments #1231
This commit is contained in:
@@ -32,7 +32,7 @@ var lengthOperatorScenarios = []expressionScenario{
|
||||
},
|
||||
{
|
||||
skipDoc: true,
|
||||
document: `{a: key no exist}`,
|
||||
document: "# abc\n{a: key no exist}",
|
||||
expression: `.b | length`,
|
||||
expected: []string{
|
||||
"D0, P[b], (!!int)::0\n",
|
||||
|
||||
Reference in New Issue
Block a user