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

Email validation not allowing specific letters (danish letters) #675

Closed
Appz-dk opened this issue Jun 26, 2024 · 3 comments
Closed

Email validation not allowing specific letters (danish letters) #675

Appz-dk opened this issue Jun 26, 2024 · 3 comments

Comments

@Appz-dk
Copy link

Appz-dk commented Jun 26, 2024

Not sure if this should even be addressed as the vowels are not part of ASCII-only characters practice.

EmailSchema = v.pipe(v.string(), v.nonEmpty('Please enter your email.'), v.email('Incorrect email format.'));

This email schema invalidates emails if any of the 'special' danish vowel are present in the email 'æøå' which is not ideal, but is understandable.

'my.næ[email protected]' would be invalid with the error 'Incorrect email format'

I have solved my issue by creating a v.custom email validation for this specific use case.

@Appz-dk
Copy link
Author

Appz-dk commented Jun 26, 2024

I think this issue should not be solved by you as it is a very specific use case and not something that should be changed on your part.

@Appz-dk Appz-dk closed this as completed Jun 26, 2024
@fabian-hiller
Copy link
Owner

I recommend using regex instead of custom. You can also have a look at #204.

@Appz-dk
Copy link
Author

Appz-dk commented Jun 26, 2024

@fabian-hiller Thanks a lot I will look into that

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

No branches or pull requests

2 participants