[READ-ONLY] Mirror of https://github.com/flo-bit/dogumentation. Simple, minimalistic documentation template using astro flo-bit.dev/dogumentation/
0

Configure Feed

Select the types of activity you want to include in your feed.

dogumentation / src / embeds / link-card / matcher.ts
238 B 8 lines
1// Matches any HTTPS URL 2const urlPattern = /(https:\/\/[^\s\\]+)/; 3 4// Function to return only the URL part 5export default function urlMatcher(url: string): string | undefined { 6 const match = url.match(urlPattern); 7 return match?.[0]; 8}