Closed revivalme closed 3 years ago
const discordProfileMatches = [
{
match: "(https?://)?(www.)?discord.gg/({PROFILE_ID})",
group: 3,
pattern: "https://discord.gg/{PROFILE_ID}",
type: TYPE_DESKTOP
},
{ match: "({PROFILE_ID})", group: 1 }
];
socialLinks.addProfile("discord", discordProfileMatches);
Try to add matches
array only.
https://codesandbox.io/s/nostalgic-night-4mq1g
It needs to be clarified in README.
I'm trying to add a new discord profile, but get an error
Uncaught TypeError: (intermediate value)(intermediate value)(intermediate value).findIndex is not a function
Demo: https://codesandbox.io/s/frosty-spence-kosd3