From 16e4bbe572751d242a23b73639627a5fcd927e67 Mon Sep 17 00:00:00 2001 From: mlohbihler Date: Mon, 14 Sep 2015 15:17:47 -0400 Subject: [PATCH] Don't decode pathname before matching Path should already have been decoded by the time this method is called. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d37374f2..1c1397a9 100755 --- a/index.js +++ b/index.js @@ -488,7 +488,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(pathname); if (!m) return false;