gcanti / io-ts-types

A collection of codecs and combinators for use with io-ts
https://gcanti.github.io/io-ts-types/
MIT License
311 stars 40 forks source link

Email regex #59

Open sledorze opened 6 years ago

sledorze commented 6 years ago

When looking at existing solutions, it looks like it can be very complexe to properly validate en email address.

http://emailregex.com/

vs

https://github.com/hapijs/isemail/blob/master/lib/index.js

I think we should either provide a incomplete solution of link to existing io-ts based solutions out there.

What is the community thinking?

steida commented 4 years ago

I would use https://github.com/validatorjs/validator.js

cogell commented 3 years ago

Is there still an appetite for this? I could make a PR

newswim commented 3 years ago

@cogell I think it would be great if this library found a definition that satisfied the majority of use cases.