diff --git a/index.js b/index.js index 976850d..d88251a 100644 --- a/index.js +++ b/index.js @@ -371,9 +371,8 @@ Router.prototype.findRoute = function findNode (method, path, constraints = {}) if (charCode === 47) break if (charCode === 58) { const nextCharCode = pattern.charCodeAt(j + 1) - if (nextCharCode === 58) { - j++ - } else break + if (nextCharCode === 58) j++ + else break } }