Version 0.7.1
This commit is contained in:
parent
dcd6778c19
commit
1a2ec10b04
4 changed files with 14 additions and 12 deletions
|
|
@ -66,7 +66,9 @@ const getUserName = (user: IUser): string => {
|
|||
return "";
|
||||
}
|
||||
|
||||
return match.replaceAll("@", "");
|
||||
let username = match.replaceAll("@", "");
|
||||
username = username.charAt(0).toUpperCase() + username.slice(1);
|
||||
return username;
|
||||
};
|
||||
|
||||
const getUserFromMention = (mention: string | undefined): IUser | undefined => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue