Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: corrected discord link pattern #8612

Merged
merged 2 commits into from
May 2, 2023
Merged

Conversation

hiteshbedre
Copy link
Contributor

@hiteshbedre hiteshbedre commented May 1, 2023

What does this PR do?

Discord link such as https://www.discordggg/ is also getting validated correctly with current pattern.
Problem:

  1. dot(.) is not escaped.
  2. url without any character after last slash (/) is also getting accepted.

So I corrected the escape pattern and also replaced * with + at the end, which mandates the character after end slash.

Fixes and improves: #8182

Screen.Recording.2023-05-02.at.1.43.45.AM.mov

Environment: Staging(main branch) / Production

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How should this be tested?

  • Manually building app on local

@vercel
Copy link

vercel bot commented May 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 1, 2023 8:39pm

@vercel
Copy link

vercel bot commented May 1, 2023

@hiteshbedre is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Contributor

github-actions bot commented May 1, 2023

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@hiteshbedre hiteshbedre changed the title discord: corrected regex pattern bug: corrected discord link pattern May 1, 2023
@hiteshbedre hiteshbedre changed the title bug: corrected discord link pattern fix: corrected discord link pattern May 1, 2023
@hiteshbedre
Copy link
Contributor Author

@Udit-takkar any update on this?

@Udit-takkar
Copy link
Contributor

@hiteshbedre reviewing it now

Copy link
Contributor

@Udit-takkar Udit-takkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@hariombalhara hariombalhara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution @hiteshbedre 🙏 I missed it in my earlier review.

@hariombalhara hariombalhara merged commit 28af11f into calcom:main May 2, 2023
Udit-takkar pushed a commit to joe-shajan/cal.com that referenced this pull request May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants