fixed ordering when b.length < a.length

This commit is contained in:
pimlie 2017-08-09 15:56:44 +02:00
parent 19d3912290
commit 51382544f5

View File

@ -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
}
}
}