Merge pull request #3906 from halfdan/patch-1

Fix regex from #3898
This commit is contained in:
Hannah Wolfe 2014-09-01 15:34:42 +01:00
commit 245d859699

View File

@ -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];