From 41fbdab614510e67fc79c4c7979674a8217bf6a2 Mon Sep 17 00:00:00 2001 From: Max Magorsch Date: Thu, 24 Oct 2019 22:33:52 +0200 Subject: Fix truncated commit messages in the changelog By default, we sanitize commit messages before displaying them. However, this way, the commit message: "Restrict to --- app/helpers/packages_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/packages_helper.rb b/app/helpers/packages_helper.rb index 3ddde56..10aee94 100644 --- a/app/helpers/packages_helper.rb +++ b/app/helpers/packages_helper.rb @@ -44,7 +44,7 @@ module PackagesHelper #end def annotate_bugs(str) - annotated_str = str.gsub(/([bB]ug\s+|[bB]ug\s+#|#)(\d+)/) do + annotated_str = (h str).gsub(/([bB]ug\s+|[bB]ug\s+#|#)(\d+)/) do link_to_bug("#{$1}#{$2}", $2) end -- cgit v1.2.3-65-gdbad