From b98790631fe22edf34750de5bff5c641ff6ea7b7 Mon Sep 17 00:00:00 2001 From: Loaderon Date: Mon, 26 Feb 2018 17:18:28 -0300 Subject: [PATCH] Update per instructions (#2403) https://github.com/publiclab/plots2/issues/2402 --- app/views/tag/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.title %>

<%= @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 %>