Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
44c2b55f
Commit
44c2b55f
authored
Jul 22, 2016
by
Ray Schamp
Committed by
GitHub
Jul 22, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #746 from rschamp/bugfix/token-path
Don't require end slashes when replacing arguments
parents
4074e218
e5ad1872
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bin/configure-fastly.js
bin/configure-fastly.js
+1
-1
No files found.
bin/configure-fastly.js
View file @
44c2b55f
...
@@ -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
,
'
.+?
'
);
};
};
/*
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment