lib/earthquake/ext.rb in earthquake-0.6.8 vs lib/earthquake/ext.rb in earthquake-0.6.9

- old
+ new

@@ -44,11 +44,11 @@ end def coloring(pattern, color = nil, &block) self.gsub(pattern) do |i| applied_colors = self[0...$~.begin(0)].scan(/\e\[[\d;]+m/) - color ||= block.call(i) - "#{i.c(color)}#{applied_colors.join}" + c = color || block.call(i) + "#{i.c(c)}#{applied_colors.join}" end end def u gsub(/&(lt|gt|amp|quot|apos);/) do |s| \ No newline at end of file