mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
Merge pull request #746 from rschamp/bugfix/token-path
Don't require end slashes when replacing arguments
This commit is contained in:
commit
44c2b55f14
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ var getViewPaths = function (routes) {
|
|||
* all :arguments become .+?
|
||||
*/
|
||||
var expressPatternToRegex = function (pattern) {
|
||||
return pattern.replace(/(:[^/]+)\//gi, '.+?/');
|
||||
return pattern.replace(/(:[^/]+)/gi, '.+?');
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue