diff --git a/src/PartyPage.tsx b/src/PartyPage.tsx index b7cc258..7247748 100644 --- a/src/PartyPage.tsx +++ b/src/PartyPage.tsx @@ -58,6 +58,7 @@ export const PartyPage: React.FC = () => { } else if (party.definitely_coming === 0) { coming = `Bisher haben ${party.maybe_coming} Gäste vorläufig zugesagt.` } else { + // eslint-disable-next-line coming = `Nach den bisherigen Zusagen kommen ${party.definitely_coming} bis ${party.definitely_coming + party.maybe_coming} Gäste.` } } diff --git a/src/partyApi.ts b/src/partyApi.ts index 6d2aa0d..9dc3fd1 100644 --- a/src/partyApi.ts +++ b/src/partyApi.ts @@ -2,7 +2,7 @@ import { APIEndPoint, PartyStatus, SelfStatus, UpdatableSelfStatus } from "./Par export const parseURI = (uri: string): APIEndPoint | undefined => { // const x = uri.match(/https?:\/\/(?.+)\.party\.leafbla\.de\/(?.+)/); - const x = uri.match(/https?:\/\/[^\/]+\/(?.+)/); + const x = uri.match(/https?:\/\/[^/]+\/(?.+)/); if (x === null || x.groups === undefined) return; // const partyName = x.groups["partyName"]; const partyName = "xmas"; @@ -12,7 +12,7 @@ export const parseURI = (uri: string): APIEndPoint | undefined => { }; const apiUrl = (apiEndPoint : APIEndPoint): string => { - + let a = `https://party.leafbla.de/api/${apiEndPoint.partyName}/${apiEndPoint.token}`; console.log(a); return a;