mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-24 00:54:02 -05:00
Change usage of gsub to delete, as per Code Climate/Rubocop recommendation (#1753)
This commit is contained in:
parent
290e8ef854
commit
8321884eef
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user