We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 670fd65 commit ef1d4e7Copy full SHA for ef1d4e7
tests/verify-solutions.js
@@ -87,10 +87,5 @@ function nameFromPath(path){
87
var regex = /exercises\/(\w+)\/solution\/solution\.js/
88
var res = path.match(regex)
89
if(!res) throw new Error('Cannot establish exercise from path: ' + path)
90
- return toExerciseName(res[1])
91
-}
92
-
93
-// ping_pell -> Ping Bell
94
-function toExerciseName (str) {
95
- return str.split('_').map(function(str){ return str.charAt(0).toUpperCase() + str.slice(1)}).join(' ')
+ return res[1]
96
}
0 commit comments