Skip to content

Instantly share code, notes, and snippets.

@milksense
Created February 6, 2026 20:19
Show Gist options
  • Select an option

  • Save milksense/899efc912ee3402174bb76e4999028c2 to your computer and use it in GitHub Desktop.

Select an option

Save milksense/899efc912ee3402174bb76e4999028c2 to your computer and use it in GitHub Desktop.
Helper to extract clean meeting URL from potentially wrapped URLs
function extractMeetingUrl(location: string): string {
// Check if it's a goo.gl redirect URL with embedded meet.google.com link
if (location.includes("goo.gl") && location.includes("meet.google.com")) {
// Extract the actual meet.google.com URL from the redirect
const meetMatch = location.match(/meet\.google\.com\/[a-z]+-[a-z]+-[a-z]+/i);
if (meetMatch) {
return `https://${meetMatch[0]}`;
}
}
return location;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment