This commit is contained in:
Shawn Smith
2017-09-20 15:41:52 +09:00
parent e565019669
commit dd0525006a

View File

@@ -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))