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

isEmail: do not allow non-breaking space in user part #2237

Merged
merged 1 commit into from Jun 26, 2023

Conversation

jeremy21212121
Copy link
Contributor

bug(isEmail) Do not allow non-breaking space in user part

Fixes #2218

  • Excluded non-breaking space character from range of acceptable UTF8 characters in the user part of email address

  • Added test cases to confirm fix

Checklist

  • PR contains only changes related; no stray files, etc.
  • README updated (where applicable)
  • Tests written (where applicable)
  • References provided in PR (where applicable)

Copy link
Member

@profnandaa profnandaa left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix.

@profnandaa profnandaa merged commit 63b1e4d into validatorjs:master Jun 26, 2023
7 checks passed
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.

Non breaking space bypass email validation
5 participants