Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This pull request fixes email validation (`celext.validateEmail`). I found that some unexpected strings like `[email protected] ` (with trailing spaces) got allowed by the email validation, those should not be valid. `mail.ParseAddress` can parse the string without any errors and the result's address (`a.Address` ) is valid, but it's already different from the original string, so I think checking if `a.Address` and the original `addr` is same is necessary.
- Loading branch information