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

updated email validation regex #323

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

AdarshGT33
Copy link
Contributor

Related Issue

Issue #138

Description

Updated the regex to validate only approved emails with approved domains

Type of PR

  • Bug fix
  • Feature enhancement
  • Documentation update
  • Other (specify): _______________

Screenshots / videos (if applicable)

[Attach any relevant screenshots or videos demonstrating the changes]

Checklist:

  • [X ] I have performed a self-review of my code
  • I have read and followed the Contribution Guidelines.
  • I have tested the changes thoroughly before submitting this pull request.
  • I have provided relevant issue numbers, screenshots, and videos after making the changes.
  • I have commented my code, particularly in hard-to-understand areas.

Future Scope:

Why didn't we used Zod for validation? I argue that we should implement Zod. I didn't moved forward with it cause that would mean some major refactoring in the code and I was not sure about it. But I would say that Zod will make it easier and also this is the future scope for this functionality as regex are not the horse for the long run.

Copy link

vercel bot commented Jun 17, 2024

@AdarshGT33 is attempting to deploy a commit to the subhadeep3902's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

Welcome to Blox AI! 🎉 Thank you for submitting your pull request. We're excited to review it! 🚀 If you haven't already, be sure to check out our site to learn more about how Blox AI makes crafting flowcharts and diagrams a breeze, and how you can get explanations from the top Google Gemini model about your creations. Start visualizing your ideas today! Visit Blox AI for more information.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to Our repository.🎊 Thank you so much for taking the time to point this out.

Copy link

vercel bot commented Jun 18, 2024

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

Name Status Preview Comments Updated (UTC)
blox-ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 18, 2024 1:12pm

@subhadeeproy3902
Copy link
Owner

@AdarshGT33 List ur contribution in the Contributing.ts file . Check or read Contributing.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feat: Adding email validation to accept emails of approved domains like .com, .in, etc in the contact form
2 participants