Skip to content

Commit

Permalink
fix: better handling of non-string column names
Browse files Browse the repository at this point in the history
  • Loading branch information
goshatch committed Jun 20, 2024
1 parent f2e3e9c commit 4411e15
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions convert.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ def input_file_to_md

def sanitize(row)
r = row.map do |k, v|
key = k.to_s.to_sym
if v.is_a? String
[k, v.gsub("\"", '')]
[key, v.gsub('\"', '')]

This comment has been minimized.

Copy link
@jackrh

jackrh Aug 21, 2024

I had to revert this line in order for it to work for me, otherwise it kept complaining about an unquoted string in the docker container.

else
[k, v]
[key, v]
end
end
r.to_h
Expand Down

0 comments on commit 4411e15

Please sign in to comment.