combine-json icon indicating copy to clipboard operation
combine-json copied to clipboard

Invalid parsing on Windows

Open ynshung opened this issue 2 years ago • 0 comments

Parses are invalid and test fails on a Windows device because of the imported sep which return \ when the path returned is /. It seems like the path returned defaulted to / on some time. It will cause error such as numerated json file in a folder (0.json, 1.json...) does not result in an array,

If you are facing this issue change const parts = path.split(sep) from sep to "/". Not sure if it applies to other Windows (10) or Node version (mine is v16.13.2).

ynshung avatar Apr 14 '22 07:04 ynshung