go.tools/go/vcs: use same regular expression for code.google.com as cmd/go
No semantic change. R=golang-dev, bradfitz, dsymonds CC=golang-dev https://golang.org/cl/13373043
This commit is contained in:
parent
1b67ef0078
commit
6fb9ae0ed5
|
|
@ -585,7 +585,7 @@ var vcsPaths = []*vcsPath{
|
||||||
// Google Code - new syntax
|
// Google Code - new syntax
|
||||||
{
|
{
|
||||||
prefix: "code.google.com/",
|
prefix: "code.google.com/",
|
||||||
re: `^(?P<root>code\.google\.com/(?:p|r)/(?P<project>[a-z0-9\-]+)(\.(?P<subrepo>[a-z0-9\-]+))?)(/[A-Za-z0-9_.\-]+)*$`,
|
re: `^(?P<root>code\.google\.com/[pr]/(?P<project>[a-z0-9\-]+)(\.(?P<subrepo>[a-z0-9\-]+))?)(/[A-Za-z0-9_.\-]+)*$`,
|
||||||
repo: "https://{root}",
|
repo: "https://{root}",
|
||||||
check: googleCodeVCS,
|
check: googleCodeVCS,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue