From d9af8eda54e9ce6983b11cce22fe98e9f5ecef2e Mon Sep 17 00:00:00 2001 From: flashwave Date: Fri, 19 Jun 2015 15:42:53 -0400 Subject: [PATCH] so email is yay --- content/data/yuuno/js/yuuno.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/data/yuuno/js/yuuno.js b/content/data/yuuno/js/yuuno.js index 50ef11e..1d6fb98 100644 --- a/content/data/yuuno/js/yuuno.js +++ b/content/data/yuuno/js/yuuno.js @@ -698,7 +698,8 @@ function checkStringLength(str, min, max) { function validateEmail(email) { // The regex - var re = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i; + var re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,48})+$/; + // is of fix // Test it (which returns true or false) return re.test(email);