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:
Rob Pike 2013-08-29 14:32:06 +10:00
parent 1b67ef0078
commit 6fb9ae0ed5
1 changed files with 1 additions and 1 deletions

View File

@ -585,7 +585,7 @@ var vcsPaths = []*vcsPath{
// Google Code - new syntax
{
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}",
check: googleCodeVCS,
},