Created
February 6, 2026 20:19
-
-
Save milksense/899efc912ee3402174bb76e4999028c2 to your computer and use it in GitHub Desktop.
Helper to extract clean meeting URL from potentially wrapped URLs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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