Allow single name component repository names
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
parent
686da01dd7
commit
94309badec
3 changed files with 15 additions and 5 deletions
|
@ -9,6 +9,9 @@ func TestRepositoryNameRegexp(t *testing.T) {
|
|||
input string
|
||||
err error
|
||||
}{
|
||||
{
|
||||
input: "short",
|
||||
},
|
||||
{
|
||||
input: "simple/name",
|
||||
},
|
||||
|
@ -41,7 +44,6 @@ func TestRepositoryNameRegexp(t *testing.T) {
|
|||
},
|
||||
{
|
||||
input: "asdf",
|
||||
err: ErrRepositoryNameMissingComponents,
|
||||
},
|
||||
{
|
||||
input: "asdf$$^/aa",
|
||||
|
@ -58,7 +60,7 @@ func TestRepositoryNameRegexp(t *testing.T) {
|
|||
},
|
||||
{
|
||||
input: "a",
|
||||
err: ErrRepositoryNameMissingComponents,
|
||||
err: ErrRepositoryNameComponentShort,
|
||||
},
|
||||
{
|
||||
input: "a-/a/a/a",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue