mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 09:35:56 -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 .+?
|
* all :arguments become .+?
|
||||||
*/
|
*/
|
||||||
var expressPatternToRegex = function (pattern) {
|
var expressPatternToRegex = function (pattern) {
|
||||||
return pattern.replace(/(:[^/]+)\//gi, '.+?/');
|
return pattern.replace(/(:[^/]+)/gi, '.+?');
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue