mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
allow "." in front-part of rfc822 email, eg. "1. company <info@first-company.com>"
This commit is contained in:
parent
0d630f41b2
commit
4b789c932d
@ -21,7 +21,7 @@ class etemplate_widget_url extends etemplate_widget
|
||||
/**
|
||||
* Regexes for validating
|
||||
*/
|
||||
const EMAIL_PREG = '^(?:[ a-z0-9!#$%&\'*+\/=?^_`{|}\(\)~-]+<)?[^\x00-\x20()<>@,;:\"\[\]]+@([a-z0-9ÄÖÜäöüß](|[a-z0-9ÄÖÜäöüß_-]*[a-z0-9ÄÖÜäöüß])\.)+[a-z]{2,6}';
|
||||
const EMAIL_PREG = '^(?:[ a-z0-9.!#$%&\'*+\/=?^_`{|}\(\)~-]+<)?[^\x00-\x20()<>@,;:\"\[\]]+@([a-z0-9ÄÖÜäöüß](|[a-z0-9ÄÖÜäöüß_-]*[a-z0-9ÄÖÜäöüß])\.)+[a-z]{2,6}';
|
||||
|
||||
/**
|
||||
* Validate input
|
||||
|
@ -33,7 +33,7 @@ var et2_url = et2_textbox.extend(
|
||||
|
||||
// PREG for client-side validation copied from etemplate_widget_url
|
||||
// using \042 instead of " to NOT stall minifyer!
|
||||
EMAIL_PREG: new RegExp(/^(?:[ a-z0-9!#$%&'*+/=?^_`{|}\(\)~-]+<)?[^\x00-\x20()<>@,;:\042\[\]]+@([a-z0-9ÄÖÜäöüß](|[a-z0-9ÄÖÜäöüß_-]*[a-z0-9ÄÖÜäöüß])\.)+[a-z]{2,6}/i),
|
||||
EMAIL_PREG: new RegExp(/^(?:[ a-z0-9.!#$%&'*+/=?^_`{|}\(\)~-]+<)?[^\x00-\x20()<>@,;:\042\[\]]+@([a-z0-9ÄÖÜäöüß](|[a-z0-9ÄÖÜäöüß_-]*[a-z0-9ÄÖÜäöüß])\.)+[a-z]{2,6}/i),
|
||||
/**
|
||||
* @memberOf et2_url
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user