Use regex to hide hikes

Capitalize super block
This commit is contained in:
Berkeley Martinez
2015-12-04 22:37:15 -08:00
parent 8175fbb297
commit c736a5c00f
2 changed files with 13 additions and 5 deletions

View File

@ -44,9 +44,14 @@ destroy()
challenge.order = order;
challenge.suborder = index + 1;
challenge.block = block;
challenge.superBlock = superBlock;
challenge.isBeta = challenge.isBeta || isBeta;
challenge.time = challengeSpec.time;
challenge.superBlock = superBlock
.split('-')
.map(function(word) {
return _.capitalize(word);
})
.join(' ');
return challenge;
});