From 4768408e5f9ef7ec42aba7e850c4727b0f16ddbe Mon Sep 17 00:00:00 2001 From: Joe Tsai Date: Mon, 11 Sep 2017 10:39:40 -0700 Subject: [PATCH] cmd/go: fix regexp The regular expression "A-za-z" is most likely a typo and the intent seems to be "A-Za-z" instead. Using "A-z" matches certain characters like: [\]^_` Updates #10010 Change-Id: If2d064c56ef613f2e46285d8d4e5998e83aed43a Reviewed-on: https://go-review.googlesource.com/62910 Reviewed-by: Matt Layher Run-TryBot: Matt Layher --- src/cmd/go/internal/get/vcs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/go/internal/get/vcs.go b/src/cmd/go/internal/get/vcs.go index 57c632eade7db..3960cdd1e4ba7 100644 --- a/src/cmd/go/internal/get/vcs.go +++ b/src/cmd/go/internal/get/vcs.go @@ -940,7 +940,7 @@ var vcsPaths = []*vcsPath{ // chiselapp.com for fossil { prefix: "chiselapp.com", - re: `^(?Pchiselapp\.com/user/[A-Za-z0-9]+/repository/[A-za-z0-9_.\-]+)$`, + re: `^(?Pchiselapp\.com/user/[A-Za-z0-9]+/repository/[A-Za-z0-9_.\-]+)$`, vcs: "fossil", repo: "https://{root}", },