diff options
| author | Dmitri Shuralyov <shurcooL@gmail.com> | 2017-04-26 19:07:15 -0400 |
|---|---|---|
| committer | Daniel Martà <mvdan@mvdan.cc> | 2017-04-28 15:32:18 +0000 |
| commit | 65119318100915eb99bc726693951a982a3f130a (patch) | |
| tree | 57461ad0f74b50b6fc6a488210a233472db5ecae /src/bytes/buffer_test.go | |
| parent | eb6adc27d56687970dd8a49794ca85acc4cf9097 (diff) | |
| download | go-65119318100915eb99bc726693951a982a3f130a.tar.xz | |
cmd/go/internal/get: allow go get on github.com/ import paths with Unicode letters
More specifically, allow Unicode letters in the directories of GitHub
repositories, which can occur and don't have a valid reason to be
disallowed by go get.
Do so by using a predefined character class, the Unicode character
property class \p{L} that describes the Unicode characters that are
letters:
http://www.regular-expressions.info/unicode.html#category
Since it's not possible to create GitHub usernames or repositories
containing Unicode letters at this time, those parts of the import path
are still restricted to ASCII letters only.
Fix name of tested func in t.Errorf messages.
Fixes #18660.
Change-Id: Ia0ef4742bfd8317d989ef1eb1d7065e382852fe2
Reviewed-on: https://go-review.googlesource.com/41822
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Daniel Martà <mvdan@mvdan.cc>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/bytes/buffer_test.go')
0 files changed, 0 insertions, 0 deletions
