diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb index 43893915d..f539512a5 100644 --- a/app/lib/formatter.rb +++ b/app/lib/formatter.rb @@ -109,7 +109,7 @@ class Formatter end def hashtag_html(match) - prefix, affix = match.split('#') + prefix, _, affix = match.rpartition('#') "#{prefix}##{affix}" end