Still capitalize words in snake case room ids
This commit is contained in:
parent
35fb1e710b
commit
2457476bae
1 changed files with 3 additions and 0 deletions
|
@ -55,6 +55,9 @@ export function roomNameFromRoomId(roomId) {
|
|||
.match(/([^:]+):.*$/)[1]
|
||||
.substring(1)
|
||||
.split("-")
|
||||
.map((part) =>
|
||||
part.length > 0 ? part.charAt(0).toUpperCase() + part.slice(1) : part
|
||||
)
|
||||
.join(" ")
|
||||
.toLowerCase();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue