mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 11:55:24 +00:00
See ChangeLog
Monotone-Parent: be2628456056b13146b29cb36efc2deaf49d537f Monotone-Revision: e58e01ba23d307338c0721fcb30c8c45fb1a15f4 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2011-04-14T21:26:35 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
/*
|
||||
Copyright (C) 2005 SKYRIX Software AG
|
||||
Copyright (C) 2006-2010 Inverse
|
||||
Copyright (C) 2006-2011 Inverse
|
||||
|
||||
This file is part of OpenGroupware.org.
|
||||
|
||||
@@ -22,11 +22,6 @@
|
||||
02111-1307, USA.
|
||||
*/
|
||||
|
||||
var uixEmailUsr =
|
||||
"([a-zA-Z0-9][a-zA-Z0-9_.-]*|\"([^\\\\\x80-\xff\015\012\"]|\\\\[^\x80-\xff])+\")";
|
||||
var uixEmailDomain =
|
||||
"([a-zA-Z0-9][a-zA-Z0-9._-]*\\.)*[a-zA-Z0-9][a-zA-Z0-9._-]*\\.[a-zA-Z]{2,6}";
|
||||
var uixEmailRegex = new RegExp("^"+uixEmailUsr+"\@"+uixEmailDomain+"$");
|
||||
var dateRegex = /^[0-9]{4}-[0-9]{2}-[0-9]{2}$/;
|
||||
|
||||
var displayNameChanged = false;
|
||||
@@ -88,14 +83,14 @@ function validateContactEditor() {
|
||||
|
||||
var e = $('workMail');
|
||||
if (e.value.length > 0
|
||||
&& !uixEmailRegex.test(e.value)) {
|
||||
&& !emailRE.test(e.value)) {
|
||||
alert(_("invalidemailwarn"));
|
||||
rc = false;
|
||||
}
|
||||
|
||||
e = $('homeMail');
|
||||
if (e.value.length > 0
|
||||
&& !uixEmailRegex.test(e.value)) {
|
||||
&& !emailRE.test(e.value)) {
|
||||
alert(_("invalidemailwarn"));
|
||||
rc = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user