diff --git a/index.js b/index.js index f35ced30..b430004a 100755 --- a/index.js +++ b/index.js @@ -490,7 +490,7 @@ var keys = this.keys, qsIndex = path.indexOf('?'), pathname = ~qsIndex ? path.slice(0, qsIndex) : path, - m = this.regexp.exec(decodeURIComponent(pathname)); + m = this.regexp.exec(decodeURLEncodedURIComponent(pathname)); if (!m) return false;