fix: line parsing for empty columns

This commit is contained in:
Steven Arcangeli 2023-11-05 07:57:54 -08:00
parent 57db10d748
commit 0715f1b0aa
2 changed files with 4 additions and 3 deletions

View file

@ -96,7 +96,7 @@ M.parse_line = function(adapter, line, column_defs)
local range = { start }
local start_len = string.len(rem)
value, rem = columns.parse_col(adapter, rem, def)
if not value or not rem then
if not rem then
return nil, string.format("Parsing %s failed", name)
end
ret[name] = value