From: Matteo Nastasi (mop) Date: Wed, 15 Feb 2017 17:02:06 +0000 (+0100) Subject: refined client-side email address check X-Git-Tag: v5.3.0~7 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=1332c0c9bf9ef247f80a7b5eac932a5f7444431f;p=brisk.git refined client-side email address check --- diff --git a/web/room.js b/web/room.js index 38a3d2a..26d78e9 100644 --- a/web/room.js +++ b/web/room.js @@ -639,7 +639,7 @@ function mesgtoadm_formtext_hilite(form) function j_check_email(email, ret) { - if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,10})+$/.test(email)) + if (/^\w+([\.-]*\w+)*@\w+([\.-]*\w+)*(\.\w{2,10})+$/.test(email)) return (true); ret.ret += (g_lang == 'en' ? "Invalid email address. " : "Indirizzo e-mail non valido.");