Comparing version 1.1.2 to 1.1.4
10
index.js
@@ -32,3 +32,3 @@ | ||
if (m = re.exec(this.path)) { | ||
var args = m.slice(1).map(decodeURIComponent); | ||
var args = m.slice(1).map(decode); | ||
debug('%s %s matches %s %j', this.method, path, this.path, args); | ||
@@ -45,1 +45,9 @@ args.push(next); | ||
} | ||
/** | ||
* Decode value. | ||
*/ | ||
function decode(val) { | ||
if (val) return decodeURIComponent(val); | ||
} |
@@ -5,3 +5,3 @@ { | ||
"repository": "koajs/route", | ||
"version": "1.1.2", | ||
"version": "1.1.4", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "koa", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2588
38