SHA256
Сервер: уточнить правила имён каналов и поиск треда
This commit is contained in:
@@ -86,11 +86,12 @@ export function toUserMessage(error, fallback = 'Действие не выпо
|
||||
code === 'BAD_CHANNEL_NAME' ||
|
||||
text.includes('channel name must match') ||
|
||||
text.includes('channelname contains unsupported') ||
|
||||
text.includes('channelname must not contain only digits') ||
|
||||
text.includes('channelname length must be 3..32') ||
|
||||
text.includes('channelname length must be 1..32') ||
|
||||
text.includes('bad_channel_name')
|
||||
) {
|
||||
return 'Некорректное название канала. Разрешены кириллица, латиница, цифры, пробел, _ и - (1..32 символа).';
|
||||
return 'Некорректное название канала. Разрешены только латинские буквы, цифры, _ и -. Длина: 3..32. Название не должно состоять только из цифр.';
|
||||
}
|
||||
|
||||
if (text.includes('channel name is required') || text.includes('введите имя канала')) {
|
||||
|
||||
Reference in New Issue
Block a user