express-slashes
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -79,3 +79,3 @@ module.exports = | ||
.replace(/\/((?:\?.*)?)$/, '$1') // remove trailing slash while preserving querystring | ||
.replace(/^([^\/]|$)/, '/$1'); // ensure url starts with a slash | ||
.replace(/^([^/]|$)/, '/$1'); // ensure url starts with a slash | ||
if (req.url !== redirectUrl && req.url !== '/') { | ||
@@ -82,0 +82,0 @@ res.redirect(redirectUrl); |
{ | ||
"name": "express-slashes", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Express middleware that removes trailing slashes", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
5867