tobyink / p5-json-schema

1 stars 4 forks source link

Email regex validation is incorrect #7

Open Relequestual opened 9 years ago

Relequestual commented 9 years ago

The regex used to validate a field given the format of email is just "\@". Obviously this is incorrect. A better, simple solution to check for at least correct format would be "^\S+@\S+.\S+$". I will make a pull request to this effect.