logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 8321884eef44a124be76a5d7c68ed5b17e483b7d
parent: 290e8ef8542e609c9244c5cfd115afe320c2f697
Author: Effy Elden <github@effy.is>
Date:   Fri, 14 Apr 2017 20:50:00 +1000

Change usage of gsub to delete, as per Code Climate/Rubocop recommendation (#1753)


Diffstat:

Mapp/lib/formatter.rb2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb @@ -15,7 +15,7 @@ class Formatter html = status.text html = encode(html) html = simple_format(html, {}, sanitize: false) - html = html.gsub(/\n/, '') + html = html.delete("\n") html = link_urls(html) html = link_mentions(html, status.mentions) html = link_hashtags(html)