diff --git a/app/views/request_for_comments/show.html.slim b/app/views/request_for_comments/show.html.slim index 7ae131c9..64fecaf4 100644 --- a/app/views/request_for_comments/show.html.slim +++ b/app/views/request_for_comments/show.html.slim @@ -45,7 +45,7 @@ - Timeout::timeout(2) do // (?:\\"|.) is required to correctly identify " within the output. // The outer (?: |\d+?) is used to correctly identify integers within the JSON - - messages = output.scan(/{(?:(?:"(?:\\"|.)+?":(?:"(?:\\"|.)*?"|\d+?|\[.*?\]|null))+?,?)+}/) + - messages = output.scan(/{(?:(?:"(?:\\"|.)+?":(?:"(?:\\"|.)*?"|-?\d+?|\[.*?\]|null))+?,?)+}/) - messages.map! {|el| JSON.parse(el)} - messages.keep_if {|message| message['cmd'] == 'write'} - messages.map! {|message| message['data']}