asaskevich / govalidator

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

Email addresses ending with a dot should fail validation #458

Open razor-1 opened 2 years ago

razor-1 commented 2 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