zero-width space unicode character at the end of EmailStr is not caught as invalid #3772
Closed
3 tasks done
Labels
bug V1
Bug related to Pydantic V1.X
Checks
Bug
Output of
python -c "import pydantic.utils; print(pydantic.utils.version_info())"
:Current behavior:
output:
The underlying
email_validator
module correctly strip the zero-width space unicode character if no "valid" character at the end.output:
Expected behavior:
Either it raises validation error or strip the zero-width space unicode character
The text was updated successfully, but these errors were encountered: