Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mastodon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
インターネット蟹工船
mastodon
Commits
8321884e
Commit
8321884e
authored
Apr 14, 2017
by
Effy Elden
Committed by
Eugen
Apr 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change usage of gsub to delete, as per Code Climate/Rubocop recommendation (#1753)
parent
290e8ef8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/lib/formatter.rb
app/lib/formatter.rb
+1
-1
No files found.
app/lib/formatter.rb
View file @
8321884e
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment