diff --git a/core/server/middleware/index.js b/core/server/middleware/index.js index c66d6f4d88..2f3e78a298 100644 --- a/core/server/middleware/index.js +++ b/core/server/middleware/index.js @@ -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];