Skip to content

Commit

Permalink
cmd/go: fix regexp
Browse files Browse the repository at this point in the history
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 <[email protected]>
Run-TryBot: Matt Layher <[email protected]>
  • Loading branch information
dsnet committed Sep 11, 2017
1 parent 2d69e9e commit 4768408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/go/internal/get/vcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ var vcsPaths = []*vcsPath{
// chiselapp.com for fossil
{
prefix: "chiselapp.com",
re: `^(?P<root>chiselapp\.com/user/[A-Za-z0-9]+/repository/[A-za-z0-9_.\-]+)$`,
re: `^(?P<root>chiselapp\.com/user/[A-Za-z0-9]+/repository/[A-Za-z0-9_.\-]+)$`,
vcs: "fossil",
repo: "https://{root}",
},
Expand Down

0 comments on commit 4768408

Please sign in to comment.