Still capitalize words in snake case room ids

This commit is contained in:
Robert Long 2022-03-03 17:09:31 -08:00
parent 35fb1e710b
commit 2457476bae

View file

@ -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();
}