mirror of
https://github.com/geoffleyland/lua-csv.git
synced 2024-11-23 01:34:19 +00:00
If a column value is a string, use it as the column name
This commit is contained in:
parent
fb69e94a89
commit
d20cd42d61
@ -62,6 +62,9 @@ function column_map:new(columns)
|
||||
t = { transform = v }
|
||||
else
|
||||
t = {}
|
||||
if type(v) == "string" then
|
||||
names = { normalise_string(v) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user