asaskevich / govalidator

[Go] Package of validators and sanitizers for strings, numerics, slices and structs
MIT License
6.06k stars 556 forks source link

Email addresses ending with a dot should fail validation #458

Open razor-1 opened 3 years ago

razor-1 commented 3 years ago

Bug Report

Q A
Version(s) 11.0.1

Summary

An email address such as "test@example.com." passes validation. Based on RFC5321, it should not. The domain part of the address cannot end in a period.

Current behavior

Email addresses ending with . validate.

Expected behavior

They fail validation