lib/valigator/csv/error.rb in valigator-csv-1.5.0 vs lib/valigator/csv/error.rb in valigator-csv-1.5.1
- old
+ new
@@ -84,12 +84,10 @@
'illegal_quoting'
when /Field size exceeded/
'field_size'
when /Unclosed quoted field/
'unclosed_quote'
- when /invalid byte sequence/
- 'invalid_encoding'
- when /incompatible encoding/
+ when /invalid byte sequence/, /incompatible encoding/, /incompatible character encodings/
'invalid_encoding'
else
raise UnhandledTypeError, message
end
end