io-ts-types icon indicating copy to clipboard operation
io-ts-types copied to clipboard

Email regex

Open sledorze opened this issue 5 years ago • 3 comments

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?

sledorze avatar Sep 06 '18 08:09 sledorze

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

steida avatar Dec 04 '19 01:12 steida

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

cogell avatar May 06 '21 20:05 cogell

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

newswim avatar Sep 03 '21 22:09 newswim