Integrate new path-to-regexp with trailing optionals (#2644)
Fix #2497 Ref pillarjs/path-to-regexp#176
This commit is contained in:
@@ -25,8 +25,7 @@ class GithubManifestVersion extends ConditionalGithubAuthService {
|
||||
static get route() {
|
||||
return {
|
||||
base: 'github/manifest-json/v',
|
||||
format: '([^/]+)/([^/]+)/?([^/]+)?',
|
||||
capture: ['user', 'repo', 'branch'],
|
||||
pattern: ':user/:repo/:branch*',
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +43,7 @@ class GithubManifestVersion extends ConditionalGithubAuthService {
|
||||
},
|
||||
{
|
||||
title: 'GitHub manifest version',
|
||||
pattern: ':user/:repo/:branch',
|
||||
pattern: ':user/:repo/:branch*',
|
||||
namedParams: {
|
||||
user: 'RedSparr0w',
|
||||
repo: 'IndieGala-Helper',
|
||||
|
||||
Reference in New Issue
Block a user