const endMessage = (text: string) => {
if (/ |^\[club\d+\|.*?\]/.test(text)) {
return text;
}
let newText = text;
if (/[a-zа-яё_]/i.test(text[0])) {
newText = `${text[0].toUpperCase()}${text.slice(1)}`;
}
if (/[a-zа-яё_]/i.test(text[text.length - 1])) {
newText = `${newText}.`;
}
return newText;
};
getState: BaseUserInfo['getState']