From 2ad3fb7be9f96d3d2f480ed50987e349dd40a043 Mon Sep 17 00:00:00 2001 From: FourierTransformer Date: Thu, 30 Nov 2017 21:58:36 -0600 Subject: [PATCH] can now handle os 9 line endings --- ftcsv.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftcsv.lua b/ftcsv.lua index af4abec..5dea5fb 100644 --- a/ftcsv.lua +++ b/ftcsv.lua @@ -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)