0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fix regex from #3898

refs #3898
This commit is contained in:
Fabian Becker 2014-09-01 15:39:53 +02:00
parent 57b5f4da00
commit 5ab8c661ec

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