Fix multiple email handling in the Inbox.
Put an email regex into WebGUI::Utility, and use it in Form/Email and Account/Inbox.
This commit is contained in:
parent
4bf3f457de
commit
29759ede9c
6 changed files with 111 additions and 53 deletions
|
|
@ -79,6 +79,19 @@ sub commify {
|
|||
}
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 emailRegex ( )
|
||||
|
||||
Returns a regex object that can be used to validate email addresses.
|
||||
|
||||
=cut
|
||||
|
||||
sub emailRegex {
|
||||
return qr/^([0-9a-zA-Z]+[-._+&])*\w+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,7}$/;
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 formatBytes ( integer )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue