lib/valigator/csv/error.rb in valigator-csv-3.0 vs lib/valigator/csv/error.rb in valigator-csv-4.0
- old
+ new
@@ -61,14 +61,12 @@
@details = details
end
def map_to_type(message)
case message
- when /Missing or stray quote/
- 'stray_quote'
when /Unquoted fields do not allow/
'line_breaks'
- when /Illegal quoting/
+ when /Missing or stray quote/, /Illegal quoting/, /Any value after quoted field isn't allowed/
'illegal_quoting'
when /Field size exceeded/
'field_size'
when /Unclosed quoted field/
'unclosed_quote'