develooper Front page | perl.moose | Postings from December 2010

Problem in MooseX::Types::Email

From:
Jiří Pavlovský
Date:
December 6, 2010 10:37
Subject:
Problem in MooseX::Types::Email
Message ID:
4CFD2D71.1080305@getnet.cz
Hello,


I'm probably going to get some pounding for posting this to this list 
but it seems nobody is reading the RT for MooseX::Types::Email and I 
noticed some maintainers of this module are also reading this list.

the EmailAddress type  MooseX::Types::Email in is declared to be of type 
NonEmptySimpleStr, ie it
cannot contain newline. But in fact email can contain \n character and
Email::Valid (which is also used for validation) will validate such
email address.

This is a problem because I cannot just validate emails with 
Email::Valid but have to do extra checks for trailing newline otherwise 
it triggers exception.

Kind Regards,
Jiri



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About