Skip to content

Commit 89811f4

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0031ab0 commit 89811f4

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/utils/openSpaces.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function extractHost(rawDesc: string): string {
6262
const m = plain.match(/booked\s*by[\s:]*(.+?)(?:\r?\n|\n)/i);
6363
if (m) return m[1].trim();
6464
const m2 = plain.match(
65-
/booked\s*by[\s:]*(.+?)\s+(?:open space title|open space description|room)/i,
65+
/booked\s*by[\s:]*(.+?)\s+(?:open space title|open space description|room)/i
6666
);
6767
if (m2) return m2[1].trim();
6868
return "";
@@ -72,7 +72,7 @@ function shortenEuroPythonLinks(text: string): string {
7272
// Replace https://ep*.europython.eu/path with [/path](/path), but only if path has content
7373
return text.replace(
7474
/https?:\/\/ep[^.]*\.europython\.eu(\/[^\s<!]+)/g,
75-
"[$1]($1)",
75+
"[$1]($1)"
7676
);
7777
}
7878

@@ -88,7 +88,7 @@ function slugify(text: string): string {
8888
}
8989

9090
function parseDt(
91-
raw: string,
91+
raw: string
9292
): null | { iso: string; hhmm: string; date: string } {
9393
const tzMatch = raw.match(/TZID=.*?[ :](\d{8}T\d{6})/);
9494
if (tzMatch) {
@@ -171,7 +171,7 @@ function parseICal(ics: string): OpenSpaceEvent[] {
171171
// Build full description from "Open Space Description" section
172172
let fullDescription = "";
173173
const descMatch = rawDescription.match(
174-
/open space description\s*:?\s*([\s\S]+?)(?:room\s+\S+|$)/i,
174+
/open space description\s*:?\s*([\s\S]+?)(?:room\s+\S+|$)/i
175175
);
176176
if (descMatch) {
177177
fullDescription = descMatch[1]
@@ -239,7 +239,7 @@ export async function fetchOpenSpacesEvents(): Promise<OpenSpaceEvent[]> {
239239
}
240240
const events = parseICal(text);
241241
console.log(
242-
`[OpenSpacesCalendar] Loaded ${events.length} events from iCal`,
242+
`[OpenSpacesCalendar] Loaded ${events.length} events from iCal`
243243
);
244244
return events;
245245
} catch (err) {

0 commit comments

Comments
 (0)