From 51382544f5cd1abb1f2329cba21d5ad9c6e83f6f Mon Sep 17 00:00:00 2001 From: pimlie Date: Wed, 9 Aug 2017 15:56:44 +0200 Subject: [PATCH] fixed ordering when b.length < a.length --- lib/common/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } } }