From 41387a388a1786354ab4b1f8d6c3a264958bcbeb Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 15 Aug 2014 11:58:54 -0700 Subject: Validate registration form --- public/js/check_email.js | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 public/js/check_email.js (limited to 'public/js/check_email.js') diff --git a/public/js/check_email.js b/public/js/check_email.js new file mode 100644 index 00000000..402b93af --- /dev/null +++ b/public/js/check_email.js @@ -0,0 +1,4 @@ +function validateEmail(email) { + var re = /^(([^<>()[\]\\.,;:\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,}))$/; + return re.test(email); +} -- cgit v1.2.3