Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

253 B
Raw Blame
const supportedCustomURISchemes = [
  "mailto:",
  "sms:",
  "tel:",
  "tg:",
  "whatsapp:",
  "xmpp:",
];

export const isSupportedCustomURIScheme = (url: string) => {
  return supportedCustomURISchemes.some((protocol) => url.startsWith(protocol));
};