Merge pull request #2973 from bobtfish/length_empty_split_zero

Split of "" should be empty. Length of empty array should be 0
pull/3693/head
Paul Hinze 11 years ago
commit c56245ce34

@ -506,6 +506,12 @@ func TestInterpolateFuncLength(t *testing.T) {
"5",
false,
},
// Want length 0 if we split an empty string then compact
{
`${length(compact(split(",", "")))}`,
"0",
false,
},
},
})
}

Loading…
Cancel
Save