Skip to content

Commit 4f26b60

Browse files
author
Yuri Lopes
committed
Use LineCSV instead of direct FastCSV
1 parent 1728e45 commit 4f26b60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/csvlint/validate.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Csvlint
22
class Validator
3-
class LineCSV < CSV
3+
class LineCSV < FastCSV
44
ENCODE_RE = Hash.new do |h, str|
55
h[str] = Regexp.new(str)
66
end
@@ -186,7 +186,7 @@ def parse_contents(stream, line = nil)
186186

187187
begin
188188
row = nil
189-
FastCSV.raw_parse(stream, @csv_options) do |raw_row|
189+
LineCSV.raw_parse(stream, @csv_options) do |raw_row|
190190
row = raw_row
191191
end
192192
rescue FastCSV::MalformedCSVError => e

0 commit comments

Comments
 (0)