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:
Colin Kuskie 2009-06-03 17:11:36 +00:00
parent 4bf3f457de
commit 29759ede9c
6 changed files with 111 additions and 53 deletions

View file

@ -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 )