Commit 44c2b55f authored by Ray Schamp's avatar Ray Schamp Committed by GitHub

Merge pull request #746 from rschamp/bugfix/token-path

Don't require end slashes when replacing arguments
parents 4074e218 e5ad1872
...@@ -58,7 +58,7 @@ var getViewPaths = function (routes) { ...@@ -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, '.+?');
}; };
/* /*
......
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