diff --git a/src/partyApi.ts b/src/partyApi.ts index f6456e7..0b92dd4 100644 --- a/src/partyApi.ts +++ b/src/partyApi.ts @@ -1,7 +1,7 @@ import { APIEndPoint, PartyStatus, SelfStatus } from "./PartyContext"; export const parseURI = (uri: string): APIEndPoint | undefined => { - const x = uri.match(/https?:\/\/(?.+)\.(?.+)\/(?.+)/); + const x = uri.match(/https?:\/\/(?\w+)\.(?.+)\/(?.+)/); if (x === null || x.groups === undefined) return; const partyName = x.groups["partyName"]; const token = x.groups["token"];