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:
@@ -79,7 +79,7 @@ func pickOperator(d *dataTreeNavigator, context Context, expressionNode *Express
|
||||
return Context{}, fmt.Errorf("cannot pick indicies from type %v (%v)", node.Tag, candidate.GetNicePath())
|
||||
}
|
||||
|
||||
results.PushBack(candidate.CreateReplacement(replacement))
|
||||
results.PushBack(candidate.CreateReplacementWithDocWrappers(replacement))
|
||||
}
|
||||
|
||||
return context.ChildContext(results), nil
|
||||
|
||||
Reference in New Issue
Block a user