Files
pydantic/changes/988-samuelcolvin.md
T
Samuel Colvin ee52496101 Email tweaks (#988)
* small tweaks to email validation

* more test examples

* change and better error messages

* remove duplicate tests

* linting

* tweak from @hramezani
2022-09-08 15:46:58 +00:00

313 B

Changes to email validation: whitespace is stripped from names, e.g. ' Fred Smith <fred@example.com>', unicode NFC normalization is applied to the local part, the domain part is cleaned to the internationalized form by round-tripping through IDNA ASCII, better error messages are provided when validation fails