Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
Capitalize ADC
Browse files Browse the repository at this point in the history
Fixes #25
  • Loading branch information
Dustin Blackman committed May 15, 2015
1 parent b9dbc12 commit 0fc9029
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion functions/championify.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,15 @@ processChamp = (champ_info, body, cb) ->
# Inserts new item sets in to a global object to be used when we get to saving files.
pushChampData = (champ, position, build) ->
positionForFile = position.replace(/ /g, '_')

if _.includes(position, 'adc')
title = position.toUpperCase()
else
title = _.capitalize(position)

newObj = {
champion: champ,
title: _.capitalize(position) + ' ' + window.riotVer,
title: title + ' ' + window.riotVer,
blocks: build
}

Expand Down

0 comments on commit 0fc9029

Please sign in to comment.