Method: Cornucopia::Util::LogCapture.highlight_log_output
- Defined in:
- lib/cornucopia/util/log_capture.rb
.highlight_log_output(log_text) ⇒ Object
76 77 78 79 80 81 82 |
# File 'lib/cornucopia/util/log_capture.rb', line 76 def highlight_log_output(log_text) output_text = Cornucopia::Util::ReportBuilder.format_code_refs(log_text) output_text = output_text.gsub(/^(Completed [^23].*)$/, "<span class=\"completed-error\">\\1<\/span>") output_text = output_text.gsub(/^(Completed [23].*)$/, "<span class=\"completed-other\">\\1<\/span>") output_text.html_safe end |