It splits on \n, but the lines evidently end with \r\n. This leaves a spurious \r character on every value in the last column in every file. This also means keying into the last column doesn't work. E.g. row["*eol"] doesn't work, you have to do row["*eol\r"]. Splitting on \r\n should fix it.
I was going to make/test this change and submit a pull request, but setting up a node.js dev environment on Windows quickly turned into a broken mess that didn't feel worth the time figuring out. So I'm hoping it's something you can throw in.
This line: https://github.com/olegbl/d2rmm/blob/master/src/main/preload.js#L193
It splits on
\n
, but the lines evidently end with\r\n
. This leaves a spurious\r
character on every value in the last column in every file. This also means keying into the last column doesn't work. E.g.row["*eol"]
doesn't work, you have to dorow["*eol\r"]
. Splitting on\r\n
should fix it.I was going to make/test this change and submit a pull request, but setting up a node.js dev environment on Windows quickly turned into a broken mess that didn't feel worth the time figuring out. So I'm hoping it's something you can throw in.
Thanks! D2RMM is very cool.