diff --git a/app/models/article.rb b/app/models/article.rb index 9edf70b..adc97b4 100644 --- a/app/models/article.rb +++ b/app/models/article.rb @@ -340,7 +340,7 @@ class Article < ActiveRecord::Base end def first_paragraph - to_html =~ /(.*<\/p>)/ + to_html =~ /

(.*)<\/p>/ $1 || '' end -- libgit2 0.21.2