heronyang / cloud-switch

Transfer your files between different cloud storage services.
2 stars 0 forks source link

Validating the email input #10

Open heronyang opened 7 years ago

heronyang commented 7 years ago

We should do simple validating on the email input using regular expression.

Refer to this (javascript one):

/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/