SudoSOS Back-end API / service/websocket/room-parser / matchesRoomPattern
Function: matchesRoomPattern() ​
ts
function matchesRoomPattern(pattern, room): boolean;Checks if a room name matches a pattern. Supports exact matches and patterns with {id} placeholder.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
pattern | string | The pattern (may contain {id} placeholder). |
room | string | The room name to match. |
Returns ​
boolean
True if the room matches the pattern.