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]
|
.match(/([^:]+):.*$/)[1]
|
||||||
.substring(1)
|
.substring(1)
|
||||||
.split("-")
|
.split("-")
|
||||||
|
.map((part) =>
|
||||||
|
part.length > 0 ? part.charAt(0).toUpperCase() + part.slice(1) : part
|
||||||
|
)
|
||||||
.join(" ")
|
.join(" ")
|
||||||
.toLowerCase();
|
.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue