Skip to content

Commit

Permalink
fix: don't recommend discordapp as url & use user's full id (#2014)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickytonline authored Oct 27, 2023
2 parents 9d86f5f + 5353256 commit 58df997
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const ContributorProfileInfo = ({
isMaintainer,
}: ContributorProfileInfoProps) => {
const interestArray = interests?.split(",").filter(Boolean);
const discordUserId = discordUrl?.match(/\d{4}$/)?.[0];
const discordUserId = discordUrl?.match(/\d{17,}$/)?.[0];

return (
<div className="flex flex-col gap-6">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ const UserSettingsPage = ({ user }: userSettingsPageProps) => {
/>
<TextInput
className="font-medium bg-light-slate-4 text-light-slate-11"
placeholder="https://discordapp.com/users/832877193112762362"
placeholder="https://discord.com/users/832877193112762362"
label="Discord URL"
onChange={handleValidateDiscordUrl}
name="discord_url"
Expand Down

0 comments on commit 58df997

Please sign in to comment.