]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix regexp
authorJoe Tsai <joetsai@digital-static.net>
Mon, 11 Sep 2017 17:39:40 +0000 (10:39 -0700)
committerJoe Tsai <thebrokentoaster@gmail.com>
Mon, 11 Sep 2017 19:59:43 +0000 (19:59 +0000)
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 <mdlayher@gmail.com>
Run-TryBot: Matt Layher <mdlayher@gmail.com>

src/cmd/go/internal/get/vcs.go

index 57c632eade7db037a282c2d679bd2ab7b6ae84fb..3960cdd1e4ba7b5be61ff77bfb5ca6f4dfad2172 100644 (file)
@@ -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}",
        },