ricardobeat / TSV

A simple javascript TSV/CSV parser.
21 stars 19 forks source link

Support Windows (currently this library doesn't work on Windows) #7

Open bednabedna opened 3 years ago

bednabedna commented 3 years ago

Split lines with this modifications handles new lines on Windows. Before the split was splitting 2 times: 1 for /r and 1 for \n, adding an empty row for each row in the tsv.

\r = CR (Carriage Return) → Used as a new line character in Mac OS before X \n = LF (Line Feed) → Used as a new line character in Unix/Mac OS X \r\n = CR + LF → Used as a new line character in Windows