parent
50ae081ea8
commit
6608f0c8ce
7 changed files with 24 additions and 12 deletions
|
|
@ -333,6 +333,13 @@ class Util {
|
|||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
sanitizeRoomId(roomId) {
|
||||
if (roomId && roomId.match(/^(!|#).+$/)) {
|
||||
return roomId;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
export default new Util();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue