lib/onebox/engine/github_commit_onebox.rb in onebox-1.8.91 vs lib/onebox/engine/github_commit_onebox.rb in onebox-1.8.92

- old
+ new

@@ -35,10 +35,10 @@ message = result['commit']['message'].split("\n", 2).last.strip message_words = message.gsub("\n\n", "\n").gsub("\n", "<br>").split(" ") max_words = 20 result['message'] = message_words[0..max_words].join(" ") - result['message'] << "..." if message_words.length > max_words + result['message'] += "..." if message_words.length > max_words result['message'] = result['message'].gsub("<br>", "\n") end ulink = URI(link) result['commit_date'] = Time.parse(result['commit']['author']['date']).strftime("%I:%M%p - %d %b %y %Z")