Skip to content

Enhanced email address validator #330

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

brendanddev
Copy link

@brendanddev brendanddev commented Jan 26, 2025

Description

The following pull request improves the existing email address validator script logic. The logic changes to the script consist of now checking for only one '@' symbol, and that the '@' symbol is not the first, or last characters in the string. Additionally it now ensures that at least a period appears after the '@', and that it is not the last character.

Fixes #(issue_no)

  • Not applicable

Type of change

Choosing one or more options from the following as per the nature of your Pull request.

  • New project insert
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation Update

Checklist:

Please tick all the boxes that are fulfilled by your Pull Request.

  • I have named my files and folder, according to this project's guidelines.
  • [x ] My code follows the style guidelines of this project.
  • I have commented on my code, particularly in hard-to-understand areas.
  • [] I have created a helpful and easy to understand README.md, according to the given README_TEMPLATE.
  • My changes do not produce any warnings.

@brendanddev
Copy link
Author

Did not create new README, altered existing code and did not create a new project.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant