lib/croque/monsieur.rb in croque-0.5.0 vs lib/croque/monsieur.rb in croque-0.5.1
- old
+ new
@@ -11,15 +11,12 @@
end
def body
# return Array
lines = get_line[7].split("\t")
- lines = lines.map{ |line| line.strip }
- lines.each do |line|
- print "#{line}\n"
+ lines.map do |line|
+ line.strip.gsub(/\e\[\d+m/, '')
end
- lines = lines.map{ |line| line.gsub(/\e\[\d+m/, '') }
- lines
end
def views_time
get_line[2].to_f
end