Closed itchyny closed 2 years ago
The indices/1 filter with empty string argument should return an empty array. This PR fixes this behavior.
indices/1
❯ jq -n '"abc" | indices("")' [] ❯ xq --version xq 0.1.7-f478cd1ff8459f55fd219c1ca5f9ee84ef459b8e ❯ xq -n '"abc" | indices("")' [ 0, 1, 2, 3 ]
Ah wasn't able to notice the semantics, thank you for the contribution!
The
indices/1
filter with empty string argument should return an empty array. This PR fixes this behavior.