diff --git a/lib/common/utils.js b/lib/common/utils.js index a7ed0b67c8..32194f9c2c 100644 --- a/lib/common/utils.js +++ b/lib/common/utils.js @@ -233,7 +233,7 @@ export function createRoutes (files, srcDir) { let z = (_b[i].indexOf('*') > -1) ? 2 : (_b[i].indexOf(':') > -1 ? 1 : 0) res = y - z if (i === _b.length - 1 && res === 0) { - res = 1 + res = -1 } } }