lib/csv_importer/header.rb in csv-importer-0.8.1 vs lib/csv_importer/header.rb in csv-importer-0.8.2

- old
+ new

@@ -7,9 +7,12 @@ attribute :column_definitions, Array[ColumnDefinition] attribute :column_names, Array[String] def columns column_names.map do |column_name| + # ensure column name escapes invisible characters + column_name = column_name.gsub(/[^[:print:]]/, '') + Column.new( name: column_name, definition: find_column_definition(column_name) ) end