Skip to content

Commit

Permalink
Fix hubs room regex
Browse files Browse the repository at this point in the history
  • Loading branch information
johnshaughnessy committed Jul 17, 2023
1 parent a80f8cd commit 9c9e2f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/media-url-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export const isHubsRoomUrl = async url =>
(await isHubsServer(url)) &&
!(await isHubsAvatarUrl(url)) &&
!(await isHubsSceneUrl(url)) &&
!url.match(hubsRoomRegex)?.groups.id;
((await url.match(hubsRoomRegex)?.groups.id) || (await url.match(localHubsRoomRegex)?.groups.id));

export const isHubsDestinationUrl = async url =>
(await isHubsServer(url)) && ((await isHubsSceneUrl(url)) || (await isHubsRoomUrl(url)));
Expand Down

0 comments on commit 9c9e2f5

Please sign in to comment.