Skip to content

Commit

Permalink
Merge pull request #1 from srdgame/patch-1
Browse files Browse the repository at this point in the history
Convert value to string before escape it
  • Loading branch information
FourierTransformer committed Mar 30, 2016
2 parents 174d0ef + 93b9cc6 commit ecd9549
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ftcsv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ end

-- a function that delimits " to "", used by the writer
local function delimitField(field)
local field = tostring(field)
if field:find('"') then
return field:gsub('"', '""')
else
Expand Down

0 comments on commit ecd9549

Please sign in to comment.