Commit e5ad1872 authored by Ray Schamp's avatar Ray Schamp

Don't require end slashes when replacing arguments

parent 4074e218
......@@ -58,7 +58,7 @@ var getViewPaths = function (routes) {
* all :arguments become .+?
*/
var expressPatternToRegex = function (pattern) {
return pattern.replace(/(:[^/]+)\//gi, '.+?/');
return pattern.replace(/(:[^/]+)/gi, '.+?');
};
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment