From 074b6f9fdb6a7148335b758216dae655661d4ba2 Mon Sep 17 00:00:00 2001 From: Clay Diffrient Date: Mon, 18 Apr 2016 22:20:12 -0600 Subject: [PATCH] Make match respect decodeURLComponents option Every other place that has decoding the decodeURLEncodedURIComponent function is used so that the option is respected. This commit makes it so that in this location it occurs as well. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;