Skip to content

Commit

Permalink
Fix capitalization and replace URLs in List model
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Jan 12, 2024
1 parent d06b9fb commit 869d97a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/models/list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,20 @@ def awesome_description
# remove extra urls (e.g. http://example.com)
d.gsub!(/https?:\/\/\S+/, '')
# proper case for "GitHub"
d.gsub!(/github/, 'GitHub')
d.gsub!(/github/i, 'GitHub')
# proper case for "JavaScript"
d.gsub!(/javascript/, 'JavaScript')
d.gsub!(/javascript/i, 'JavaScript')
# OSX should be macOS
d.gsub!(/OS X/, 'macOS')
d.gsub!(/Mac OS X/, 'macOS')
d.gsub!(/OSX/, 'macOS')
d.gsub!(/Mac macOS/, 'macOS')
# youtube should be YouTube
d.gsub!(/youtube/, 'YouTube')
d.gsub!(/youtube/i, 'YouTube')
# stackoverflow should be Stack Overflow
d.gsub!(/stackoverflow/, 'Stack Overflow')
d.gsub!(/stackoverflow/i, 'Stack Overflow')
# Nodejs should be Node.js
d.gsub!(/Nodejs/, 'Node.js')
d.gsub!(/Nodejs/i, 'Node.js')
d
end

Expand Down

0 comments on commit 869d97a

Please sign in to comment.