Skip to content

Commit

Permalink
allow exercises in menu.json to be removed with //
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Feb 20, 2014
1 parent 27d6fc3 commit 5ac63dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion workshopper.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ function Workshopper (options) {
this.width = typeof options.width == 'number' ? options.width : defaultWidth
this.exerciseDir = options.exerciseDir
this.appDir = options.appDir
this.exercises = require(menuJson)
this.exercises = require(menuJson).filter(function (e) {
return !/^\/\//.test(e)
})

this.dataDir = path.join(
process.env.HOME || process.env.USERPROFILE
Expand Down

0 comments on commit 5ac63dd

Please sign in to comment.