Skip to content

Commit 7a3f4e8

Browse files
committed
Make slash at end of github path optional
1 parent 7b5fd53 commit 7a3f4e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/github.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type GitHubGateway struct {
1414
}
1515

1616
var pathRegexp = regexp.MustCompile("^/github/?")
17-
var allowedRegexp = regexp.MustCompile("^/github/(git|contents|pulls|branches)/")
17+
var allowedRegexp = regexp.MustCompile("^/github/(git|contents|pulls|branches)/?")
1818

1919
func NewGitHubGateway() *GitHubGateway {
2020
return &GitHubGateway{

0 commit comments

Comments
 (0)