mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-26 09:08:07 -05:00
Don't require end slashes when replacing arguments
This commit is contained in:
parent
4074e218b2
commit
e5ad1872d0
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