diff options
author | 2019-10-24 22:33:52 +0200 | |
---|---|---|
committer | 2019-10-24 22:33:52 +0200 | |
commit | 41fbdab614510e67fc79c4c7979674a8217bf6a2 (patch) | |
tree | b0d5a7972be8f3178265d2a9fcf4313a24078eb9 | |
parent | Add a generator for advanced search queries (diff) | |
download | packages-5-dev/bootstrap4.tar.gz packages-5-dev/bootstrap4.tar.bz2 packages-5-dev/bootstrap4.zip |
Fix truncated commit messages in the changelogdev/bootstrap4
By default, we sanitize commit messages before displaying them. However,
this way, the commit message:
"Restrict to <media-sound/fluidsynth-2"
becomes to:
"Restrict to"
This behaviour is fixed by escaping the raw commit message before
processing it. This way we escape everything but the inserted links
to bugs.
Bug: https://bugs.gentoo.org/675324
Signed-off-by: Max Magorsch <max@magorsch.de>
-rw-r--r-- | app/helpers/packages_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |