From e5ad1872d0d6c9ab4052f9e814cced0fe8c44488 Mon Sep 17 00:00:00 2001 From: Ray Schamp Date: Fri, 22 Jul 2016 11:47:26 -0400 Subject: [PATCH] Don't require end slashes when replacing arguments --- bin/configure-fastly.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/configure-fastly.js b/bin/configure-fastly.js index 011ce3a50..729227d48 100644 --- a/bin/configure-fastly.js +++ b/bin/configure-fastly.js @@ -58,7 +58,7 @@ var getViewPaths = function (routes) { * all :arguments become .+? */ var expressPatternToRegex = function (pattern) { - return pattern.replace(/(:[^/]+)\//gi, '.+?/'); + return pattern.replace(/(:[^/]+)/gi, '.+?'); }; /*