diff --git a/app/views/tag/show.html.erb b/app/views/tag/show.html.erb index 91f12e83f9..5008749b09 100644 --- a/app/views/tag/show.html.erb +++ b/app/views/tag/show.html.erb @@ -18,7 +18,7 @@ <% else %>
<%= @wiki.latest.render_body.html_safe.match(/
(.+)<\/p>/).to_a.try(:first).to_s.html_safe %>
-<%= link_to("Learn more on the wiki page", "/wiki/#{params[:id]}") if @wiki.latest.render_body.html_safe.match(/
(.+)<\/p>/).length > 1 %>
+<%= link_to("Learn more on the wiki page", "/wiki/#{params[:id]}") if @wiki.latest.render_body.html_safe.match(/
(.+)<\/p>/).to_a.length > 1 %>
<% end %> <% elsif @wildcard %>