mirror of
https://github.com/rclone/rclone.git
synced 2025-08-18 17:38:52 +02:00
config: reject remote names starting with a dash. (#4261)
This commit is contained in:
@@ -23,6 +23,9 @@ func TestCheckConfigName(t *testing.T) {
|
||||
{"rem\\ote", errInvalidCharacters},
|
||||
{"[remote", errInvalidCharacters},
|
||||
{"*", errInvalidCharacters},
|
||||
{"-remote", errCantStartWithDash},
|
||||
{"r-emote-", nil},
|
||||
{"_rem_ote_", nil},
|
||||
} {
|
||||
got := CheckConfigName(test.in)
|
||||
assert.Equal(t, test.want, got, test.in)
|
||||
|
Reference in New Issue
Block a user