bizz84/firebase_auth_demo_flutter

Use a less restrictive client regex validator

Closed this issue · 0 comments

The existing validator may be too restrictive:

^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+){1,2}$

This article covers in great detail how to approach email validation:

https://dev.to/jerodsanto/there-s-only-one-way-to-validate-an-email-address-4i3k

If a client regex should be used, this would work better:

^\S+@\S+\.\S+$