feat(clean_url): calendly

This commit is contained in:
MDLeom 2025-08-18 08:26:56 +00:00
parent 73c510953f
commit b9d9dc683e
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 5 additions and 0 deletions

View File

@ -81,6 +81,11 @@ const deSafelink = (urlStr) => {
url = new URL(url.searchParams.get('uddg'))
}
// Calendly
if (url.hostname === 'calendly.com' && url.pathname === '/url') {
url = new URL(url.searchParams.get('q'))
}
// "Just have to go deep enough."
if (url.hostname.match(new RegExp(safeLinks.join('|')))) {
return deSafelink(url.href)