Merge pull request #34510 from akhileshh/master
fix: Fixes api word capitalization freeCodeCamp
This commit is contained in:
committed by
Stuart Taylor
parent
d9ac45868c
commit
ed5b434ad1
@@ -7,6 +7,7 @@ const {
|
||||
} = require('../../curriculum/getChallenges');
|
||||
const utils = require('./');
|
||||
const { locale } = require('../config/env.json');
|
||||
const { blockNameify } = require('./blockNameify');
|
||||
|
||||
const dasherize = utils.dasherize;
|
||||
const nameify = utils.nameify;
|
||||
@@ -56,9 +57,6 @@ function prepareChallenge(challenge) {
|
||||
);
|
||||
}
|
||||
challenge.block = dasherize(challenge.block);
|
||||
challenge.superBlock = challenge.superBlock
|
||||
.split('-')
|
||||
.map(word => _.capitalize(word))
|
||||
.join(' ');
|
||||
challenge.superBlock = blockNameify(challenge.superBlock);
|
||||
return challenge;
|
||||
}
|
||||
|
Reference in New Issue
Block a user