diff --git a/app/views/request_for_comments/show.html.erb b/app/views/request_for_comments/show.html.erb index d3751d0b..bfc117fa 100644 --- a/app/views/request_for_comments/show.html.erb +++ b/app/views/request_for_comments/show.html.erb @@ -46,7 +46,17 @@
<% output_runs.each do |testrun| %> -
<%= testrun.try(:output) or t('request_for_comments.no_output') %>
+ <% + output = testrun.try(:output) + if output + messages = output.scan(/{(?:(?:".+?":".+?")+?,?)+}/) + messages.map! {|el| JSON.parse(el)} + messages.keep_if {|message| message['cmd'] == 'write'} + messages.map! {|message| message['data']} + output = messages.join '' + end + %> +
<%= output or t('request_for_comments.no_output') %>
<% end %>
<% end %>