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

Add Support UTF-8 Email #985

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add Support UTF-8 Email #985

wants to merge 1 commit into from

Conversation

kiznick
Copy link

@kiznick kiznick commented Sep 9, 2021

jQuery Validation Engine PR Request Template

Please note: Has this feature already been added? Sometimes, duplicate pull requests happen. It's worth checking the pull requests and issue page to see if the change you are requesting has already been made.

Descriptive name.

Your pull request should have a descriptive name.

Type of Change was Made?

What type of change does your code introduce? After creating the PR, tick the checkboxes that apply.

  • Small bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • [/ ] Improvement (Enhance an existing functionality)
  • Breaking change (fix or feature that would change existing functionality)

Description of the Change Being Made.

Make Email Validator Support UTF-8 Email

Issue Number

None

Potential Performance Issues

None

Tests/Checks

[email protected]
[email protected]
อีเมลทดสอบ@ยูเอทดสอบ.ไทย
อีเมลทดสอบ@ทีเอชนิค.องค์กร.ไทย

New Dependencies

None

@@ -84,7 +84,7 @@
},
"email": {
// HTML5 compatible email regex ( http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html# e-mail-state-%28type=email%29 )
"regex": /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
"regex": ^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$,
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you explain your change please? On such a large regex, its hard to figure out what your change does.

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.

2 participants