+2005-07-18 Helge Hess <helge.hess@opengroupware.org>
+
+ * English.lproj/Localizable.strings: added text for invalid emails
+ (v0.9.25)
+
2005-07-13 Helge Hess <helge.hess@opengroupware.org>
* UIxContactEditorBase.m: added a safeguard for vCard contacts
*/
/* some generic JavaScript code for SOGo */
+// TODO: replace things with Prototype where applicable
+
/* generic stuff */
function ml_stripActionInURL(url) {
return url;
}
+/* emails */
+
+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,5}";
+var uixEmailRegex = new RegExp("^"+uixEmailUsr+"\@"+uixEmailDomain+"$");
+
+/* escaping */
+
function escapeHTML(s) {
s = s.replace(/&/g, "&");
s = s.replace(/</g, "<");