Skip to content

Commit

Permalink
Update per instructions (#2403)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvaroscelza authored and jywarren committed Feb 26, 2018
1 parent 14d9f92 commit b987906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/tag/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<% else %>
<h1><%= @wiki.latest.title %></h1>
<p><%= @wiki.latest.render_body.html_safe.match(/<p>(.+)<\/p>/).to_a.try(:first).to_s.html_safe %></p>
<p><%= link_to("Learn more on the wiki page", "/wiki/#{params[:id]}") if @wiki.latest.render_body.html_safe.match(/<p>(.+)<\/p>/).length > 1 %></p>
<p><%= link_to("Learn more on the wiki page", "/wiki/#{params[:id]}") if @wiki.latest.render_body.html_safe.match(/<p>(.+)<\/p>/).to_a.length > 1 %></p>
<% end %>
</div>
<% elsif @wildcard %>
Expand Down

0 comments on commit b987906

Please sign in to comment.