fspath: allow the symbols at and plus in remote names - fixes #6710

This commit is contained in:
albertony
2023-01-19 21:38:24 +01:00
parent 8c8ee9905c
commit c5acb10151
4 changed files with 9 additions and 5 deletions

View File

@@ -41,6 +41,8 @@ func TestCheckConfigName(t *testing.T) {
{"..", nil, ".."},
{".r.e.m.o.t.e.", nil, ".r.e.m.o.t.e."},
{"rem ote", nil, "rem ote"},
{"user@example.com", nil, "user@example.com"},
{"user+junkmail@example.com", nil, "user+junkmail@example.com"},
{"blåbær", nil, "blåbær"},
{"chữ Quốc ngữ", nil, "chữ Quốc ngữ"},
{"remote ", errInvalidCharacters, "remote_"},
@@ -68,6 +70,8 @@ func TestCheckRemoteName(t *testing.T) {
{".r.e.m.o.t.e.:", nil},
{"-r-emote-:", errInvalidCharacters},
{"rem ote:", nil},
{"user@example.com:", nil},
{"user+junkmail@example.com:", nil},
{"blåbær:", nil},
{"chữ Quốc ngữ:", nil},
{"remote :", errInvalidCharacters},