can now handle os 9 line endings

This commit is contained in:
FourierTransformer 2017-11-30 21:58:36 -06:00
parent 1a40dd1126
commit 2ad3fb7be9

View File

@ -215,7 +215,7 @@ local function parseString(inputString, inputLength, delimiter, i, headerField,
-- end
-- newline?!
elseif ((currentChar == CR and nextChar == LF) or currentChar == LF) then
elseif (currentChar == CR or currentChar == LF) then
if fieldsToKeep == nil or fieldsToKeep[headerField[fieldNum]] then
-- create the new field
field = createField(inputString, quote, fieldStart, i, doubleQuoteEscape)