koa-rewrite
Advanced tools
Comparing version 3.0.0 to 3.0.1
3.0.1 / 2018-05-08 | ||
================== | ||
* handle undefined (#18) | ||
3.0.0 / 2017-11-03 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -37,4 +37,4 @@ 'use strict'; | ||
ctx.url = dst.replace(/\$(\d+)|(?::(\w+))/g, (_, n, name) => { | ||
if (name) return m[map[name].index + 1]; | ||
return m[n]; | ||
if (name) return m[map[name].index + 1] || ''; | ||
return m[n] || ''; | ||
}); | ||
@@ -41,0 +41,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"repository": "koajs/rewrite", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"scripts": { | ||
@@ -8,0 +8,0 @@ "test": "mocha test/test" |
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
3172