Don't require end slashes when replacing arguments

This commit is contained in:
Ray Schamp 2016-07-22 11:47:26 -04:00
parent 4074e218b2
commit e5ad1872d0

View file

@ -58,7 +58,7 @@ var getViewPaths = function (routes) {
* all :arguments become .+? * all :arguments become .+?
*/ */
var expressPatternToRegex = function (pattern) { var expressPatternToRegex = function (pattern) {
return pattern.replace(/(:[^/]+)\//gi, '.+?/'); return pattern.replace(/(:[^/]+)/gi, '.+?');
}; };
/* /*