Olivier Mengué

Results 515 comments of Olivier Mengué

Instead it would be better to use the regexp provided in the HTML5 specification for e-mail input fields: https://www.w3.org/TR/html5/forms.html#valid-e-mail-address The HTML5 spec explains why the specification RFC5322 is broken and...

@epelc Is `"Alice "` really something you want to accept in a field for an e-mail address? `IsEmail` is a matcher. Not an extractor like `mail.ParseAddress`.

Last commit is date March 2018. Go modules didn't exist at that time.

@tv42 about [your comment about a random generator being something that generates bytes](#issuecomment-131993871) A random generator can be seen as an io.Reader. `math/rand` and `crypto/rand` have a `func Read([]byte) (n...

This is not possible. But if you find a way, patches are welcome!