Skip to content

Commit 5dd6e13

Browse files
committed
bdecode: final output fix
1 parent 40a439d commit 5dd6e13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bencode.jq

+1-1
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def _bdecode(length_function):
422422
) end
423423
) |
424424
# Converts the stream representation into a JSON DS, removing the initial list wrapping
425-
fromstream(.[0][])[]
425+
fromstream(.[0][0:-1][])[]
426426
;
427427

428428
# JSON to Bencode encoder

0 commit comments

Comments
 (0)