lib/tableware/parser.rb in tableware-0.1.0 vs lib/tableware/parser.rb in tableware-0.1.1
- old
+ new
@@ -23,10 +23,10 @@
end
private def prepare_lines(input)
lines = input.strip.lines
- @data_start = lines[1] =~ /^\s*[-=]+\s*$/ ? 2 : 0
+ @data_start = lines[1] =~ /^\s*[-=\|]+\s*$/ ? 2 : 0
if @data_start.nonzero?
@headers = parse_line(lines[0])
.map!(&:downcase)
.map! { |head| head.gsub(/\s+/, '_') }
.map!(&:to_sym)