Skip to content

Commit

Permalink
Merge pull request TryGhost#3906 from halfdan/patch-1
Browse files Browse the repository at this point in the history
Fix regex from TryGhost#3898
  • Loading branch information
ErisDS committed Sep 1, 2014
2 parents 57b5f4d + 5ab8c66 commit 245d859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/server/middleware/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function redirectToSetup(req, res, next) {
function uncapitalise(req, res, next) {
var pathToTest = req.path,
isSignupOrReset = req.path.match(/(\/ghost\/(signup|reset)\/)/i),
isAPI = req.path.match(/(\/ghost\/api\/v0[\d\.]+\/.*?\/)/i);
isAPI = req.path.match(/(\/ghost\/api\/v[\d\.]+\/.*?\/)/i);

if (isSignupOrReset) {
pathToTest = isSignupOrReset[1];
Expand Down

0 comments on commit 245d859

Please sign in to comment.