Skip to content

Commit eeb9fcb

Browse files
authored
Merge pull request #9 from aberkowitz/main
Tweak: Added Project Night to Activities and modified link validation
2 parents 12fb448 + c242098 commit eeb9fcb

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
title: Project Night
2+
description: A weekly virtual gathering to work on our personal projects, and share learnings. Message @aberkowitz your email for an invite.
3+
link: "slack://channel?team=T0A0T7A5Q&id=D3KKP1X7A"
4+
color: "#735FFF"
5+
order: 6
6+
status: ongoing

src/content.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const activities = defineCollection({
2020
schema: z.object({
2121
title: z.string().min(2),
2222
description: z.string().min(10),
23-
link: z.string().optional().refine(v => !v || v.startsWith('/') || v.startsWith('http'), {
23+
link: z.string().optional().refine(v => !v || v.startsWith('/') || v.startsWith('http') || v.startsWith('slack'), {
2424
message: 'link must be a relative path or full URL',
2525
}),
2626
color: z.string().regex(/^#[0-9a-fA-F]{6}$/),

0 commit comments

Comments
 (0)