MM-41909: Allow 1 char channel name (#19845)

* [ MM-41909 ] Allow 1 character channel names

Change minimal length to 1

* [ MM-41909 ] Fix localization string

* [ MM-41909 ] Modify condition to allow 1 char channel name

* [ MM-41909 ] fix formatting

* [MM-41909] Linting fix

* [MM-41909] Fix regex

* [MM-41909] Localization update

* [MM-41909] Attempt to fix test

Co-authored-by: Kevin Jiang <>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Kevin Sicong Jiang
2022-04-13 03:17:15 +12:00
коммит произвёл GitHub
родитель 053e92a683
Коммит 5cb31a114a
6 изменённых файлов: 57 добавлений и 16 удалений

Просмотреть файл

@@ -28,7 +28,7 @@ func TestRenameProviderDoCommand(t *testing.T) {
// Table Test for basic cases. Blank text in response indicates success
for msg, expected := range map[string]string{
"": "api.command_channel_rename.message.app_error",
"o": "api.command_channel_rename.too_short.app_error",
"o": "",
"joram": "",
"More than 22 chars but less than 64": "",
strings.Repeat("12345", 13): "api.command_channel_rename.too_long.app_error",