You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
╭─stanzheng@stanzheng-2 ~/code/norfolkjs/gettysburg ‹stanzheng›
╰─$ node app.js
/Users/stanzheng/code/norfolkjs/gettysburg/node_modules/express/lib/utils.js:313
return new RegExp('^' + path + '$', sensitive ? '' : 'i');
^
SyntaxError: Invalid regular expression: /^\/[c++-standard-and-education]\/?$/: Range out of order in character class
at new RegExp (<anonymous>)
at Object.exports.pathRegexp (/Users/stanzheng/code/norfolkjs/gettysburg/node_modules/express/lib/utils.js:313:56)
at new Route (/Users/stanzheng/code/norfolkjs/gettysburg/node_modules/express/lib/router/route.js:35:23)
at Router.route (/Users/stanzheng/code/norfolkjs/gettysburg/node_modules/express/lib/router/index.js:296:15)
at Router.(anonymous function) [as get] (/Users/stanzheng/code/norfolkjs/gettysburg/node_modules/express/lib/router/index.js:318:16)
at Function.app.(anonymous function) [as get] (/Users/stanzheng/code/norfolkjs/gettysburg/node_modules/express/lib/application.js:412:26)
at /Users/stanzheng/code/norfolkjs/gettysburg/app.js:17:11
at Array.forEach (native)
at Function._.each._.forEach (/Users/stanzheng/code/norfolkjs/gettysburg/node_modules/underscore/underscore.js:79:11)
at setRoutes (/Users/stanzheng/code/norfolkjs/gettysburg/app.js:11:7)
agreed i'll follow the stack trace and issue a PR to fix this tonight. Put this effort on the backburner.
SN: @tjwebb do you think theres an easy way to generate static files and stash them in a directory? I'm still very use to publishing to github pages and would be up for putting a PR for users to publish static pages to github.
**through express and how the framework is architected.
Activity
tjwebb commentedon Jul 18, 2014
+and-are regex special characters. So those need to be sanitized by the framework, probably via URL encoding.qwo commentedon Jul 18, 2014
agreed i'll follow the stack trace and issue a PR to fix this tonight. Put this effort on the backburner.
SN: @tjwebb do you think theres an easy way to generate static files and stash them in a directory? I'm still very use to publishing to github pages and would be up for putting a PR for users to publish static pages to github.
**through express and how the framework is architected.