Closed meteficha closed 7 years ago
Looks good to me. What creates those spaces?
I'm not sure, to be honest, because I hadn't created the tarballs that exposed this issue. I can try to track it down if that is important.
That was just to satisfy my curiosity!
This is now published as v0.1.1
Thanks! :)
It seems to me that leading spaces are a non-standard feature, but one that is seen in the wild. In particular the tar library already handles this case: https://github.com/haskell/tar/commit/455a26e3b3771c560555ad915a4e3d9b1c4d9a13.
I've hit this bug while trying to parse a tarball that looked fine otherwise. With this patch, it seems to work great!