Skip to content

Commit f8ce111

Browse files
Update src/content.config.ts
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 5ae971b commit f8ce111

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ const participation = defineCollection({
478478
actions: z.array(
479479
z.object({
480480
label: z.string(),
481-
href: z.string(),
481+
href: z.string().refine((val) => ["http", "/", "#", "mailto:"].some(prefix => val.startsWith(prefix)), { message: "href must be a valid URL, mailto, or path" }),
482482
ariaLabel: z.string().optional(),
483483
detail: z.string().optional(),
484484
}),

0 commit comments

Comments
 (0)