From 6104a6c52165eb9af584492ee3449a3fbb45cee4 Mon Sep 17 00:00:00 2001 From: Godwin Date: Fri, 18 Sep 2015 16:51:53 -0700 Subject: [PATCH] Error in regex --- app/views/workshops/_workshop_previews.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/workshops/_workshop_previews.html.haml b/app/views/workshops/_workshop_previews.html.haml index c3b6523..cdcea25 100644 --- a/app/views/workshops/_workshop_previews.html.haml +++ b/app/views/workshops/_workshop_previews.html.haml @@ -1,7 +1,8 @@ +- # encoding: utf-8 %ul.workshop-previews - workshops.each do |w| - if w.title %li =link_to view_workshop_path(@this_conference.slug, w.id) do %h4=_!(w.title) - %p=_!(w.info || '').gsub(/\n\#+(.*?)\r/s, "\n\\1\r").gsub(/[\t ]*\r\n[\t ]*/s, '
').html_safe + %p=_!(w.info || '').gsub(/\n\#+(.*?)\r/, "\n\\1\r").gsub(/[\t ]*\r\n[\t ]*/, '
').html_safe