Skip to content

Commit

Permalink
Merge pull request #137 from strategicdata/validate-header-size-impro…
Browse files Browse the repository at this point in the history
…vement

Validate header size improvement
  • Loading branch information
pezholio committed Jul 24, 2015
2 parents 250d0c0 + 98e9c56 commit ccbc9fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/csvlint/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def initialize(uri, fields=[], title=nil, description=nil)
def validate_header(header)
reset

found_header = header.join(',')
expected_header = @fields.map{ |f| f.name }.join(',')
found_header = header.to_csv(:row_sep => '')
expected_header = @fields.map{ |f| f.name }.to_csv(:row_sep => '')
if found_header != expected_header
build_warnings(:malformed_header, :schema, 1, nil, found_header, expected_header)
end
Expand Down

0 comments on commit ccbc9fd

Please sign in to comment.