Skip to content

Commit

Permalink
Merge pull request #26640 from software-mansion-labs/ts-migration/roo…
Browse files Browse the repository at this point in the history
…m-name-input-utils

[No QA] [TS migration] Migrate 'RoomNameInputUtils.js' lib to TypeScript
  • Loading branch information
Julesssss authored Sep 11, 2023
2 parents 876501b + 2cf9516 commit 62f9a49
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ import CONST from '../CONST';

/**
* Replaces spaces with dashes
*
* @param {String} roomName
* @returns {String}
*/
function modifyRoomName(roomName) {
function modifyRoomName(roomName: string): string {
const modifiedRoomNameWithoutHash = roomName
.replace(/ /g, '-')

Expand Down

0 comments on commit 62f9a49

Please sign in to comment.