mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-29 06:49:05 +08:00
fix typo
This commit is contained in:
2
main.go
2
main.go
@@ -39,7 +39,7 @@ func makeHandler(name string, dev bool, fn func(http.ResponseWriter, *http.Reque
|
||||
// for backwards-compatibility, we must support URLs formatted as
|
||||
// /report/[org]/[repo]
|
||||
// and they will be assumed to be github.com URLs. This is because
|
||||
// at first Go Report Card only supported github.com URLs, and assumed
|
||||
// at first Go Report Card only supported github.com URLs, and
|
||||
// took only the org name and repo name as parameters. This is no longer the
|
||||
// case, but we do not want external links to break.
|
||||
oldFormat := regexp.MustCompile(fmt.Sprintf(`^/%s/([a-zA-Z0-9\-_]+)/([a-zA-Z0-9\-_]+)$`, name))
|
||||
|
||||
Reference in New Issue
Block a user