Change usage of gsub to delete, as per Code Climate/Rubocop recommendation (#1753)
This commit is contained in:
		
							parent
							
								
									d91b462aa1
								
							
						
					
					
						commit
						089c5a76ba
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -15,7 +15,7 @@ class Formatter | ||||||
|     html = status.text |     html = status.text | ||||||
|     html = encode(html) |     html = encode(html) | ||||||
|     html = simple_format(html, {}, sanitize: false) |     html = simple_format(html, {}, sanitize: false) | ||||||
|     html = html.gsub(/\n/, '') |     html = html.delete("\n") | ||||||
|     html = link_urls(html) |     html = link_urls(html) | ||||||
|     html = link_mentions(html, status.mentions) |     html = link_mentions(html, status.mentions) | ||||||
|     html = link_hashtags(html) |     html = link_hashtags(html) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue