Files
discord-decomp/modules/links/native/LinkingWhitelist.tsx
T
2026-11-01 12:12:55 +02:00

55 lines
1.5 KiB
TypeScript

// Metro module 3887 (f3888).
const r10 = {
discordConnect: {
regex: /(?:^discordconnect:\/\/)/i,
protocol: "discordconnect://"
},
facebook: {
regex: /(?:^https?:\/\/)(?:www\.)?(facebook\.com)(?:$|\/)/i,
protocol: "fb://"
},
instagram: {
regex: /(?:^https?:\/\/)(?:www\.)?(instagram\.com|instagr\.am)(?:$|\/)/i,
protocol: "instagram://"
},
snapchat: {
regex: /(?:^https?:\/\/)(?:www\.)?(snapchat\.com)(?:$|\/)/i,
protocol: "snapchat://"
},
spotify: {
regex: /(?:^https?:\/\/)(?:open\.)?(spotify\.com)(?:$|\/)/i,
protocol: "https://open.spotify.com"
},
tiktok: {
regex: /(?:^https?:\/\/)(?:www\.)?(tiktok\.com)(?:$|\/)/i,
protocol: "tiktok://"
},
twitch: {
regex: /(?:^https?:\/\/)(?:www\.)?(twitch\.tv)(?:$|\/)/i,
protocol: "twitch://"
},
telegram: {
regex: /(?:^https?:\/\/)(?:www\.)?(t\.me)(?:$|\/)/i,
protocol: "tg://"
},
twitter: {
regex: /(?:^https?:\/\/)(?:www\.)?(?:twitter\.com|x\.com)(?:$|\/)/i,
protocol: "twitter://"
},
whatsapp: {
regex: /(?:^https?:\/\/)(?:www\.)?(whatsapp\.com)(?:$|\/)/i,
protocol: "whatsapp://"
},
youtube: {
regex: /(?:^https?:\/\/)(?:www\.)?(youtube\.com|youtu\.be)(?:$|\/)/i,
protocol: "youtube://"
},
zoom: {
regex: /(?:^https?:\/\/)(?:www\.)?(zoom\.us)(?:$|\/)/i,
protocol: "zoomus://"
}
};
const r35 = Object.values(r10);
export { r10 as LINKING_WHITELIST };
export { r35 as LINKING_WHITELIST_VALUES };