thi-ng / validate

Spec based validation & correction for nested data structures, wildcard support, no macros

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

E-mail validation

pandeiro opened this issue · comments

When I try to validate foo@fuzz with (v/email) no error is produced. Am I missing something or is this a bug?

The regex being used is #"(?i)^[\w.%+-]+@[a-z0-9.-]+.[a-z]{2,6}$"). Maybe what we want here is #"(?i)^[\w.%+-]+@[a-z0-9.-]+\.[a-z]{2,6}$") (escaping the dot in the middle)?

Good catch, thanks!

Cheers 👍

Would a patch release be possible with this change?

almost there :)