Skip Menu |

This queue is for tickets about the Data-Validate-Email CPAN distribution.

Report information
The Basics
Id: 48390
Status: open
Priority: 0/
Queue: Data-Validate-Email

People
Owner: Nobody in particular
Requestors: krzysin [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: fix username validate
Date: Mon, 3 Aug 2009 15:21:19 +0200
To: bug-Data-Validate-Email [...] rt.cpan.org
From: Krzysztof Wojtaś <krzysin [...] gmail.com>
Hi fix: --- a/lib/Data/Validate/Email.pm +++ b/lib/Data/Validate/Email.pm @@ -348,7 +348,7 @@ sub is_username{ return unless defined($value); - my($username) = $value =~ /^([a-z0-9_\-\.]+)$/i; + my($username) = $value =~ /^([a-z0-9_\-\.+]+)$/i; return $username; } diff --git a/lib/auto/Data/Validate/Email/is_username.al b/lib/auto/Data/Validate/Email/is_username.al index e2d07b0..902678a 100644 --- a/lib/auto/Data/Validate/Email/is_username.al +++ b/lib/auto/Data/Validate/Email/is_username.al @@ -13,7 +13,7 @@ sub is_username{ return unless defined($value); - my($username) = $value =~ /^([a-z0-9_\-\.]+)$/i; + my($username) = $value =~ /^([a-z0-9_\-\.+]+)$/i; return $username; }
From: ferreira [...] cpan.org
Release 0.05 – http://search.cpan.org/~sonnen/Data-Validate-Email-0.05/ – should have fixed this issue. On Mon Aug 03 09:21:45 2009, krzysin@gmail.com wrote: Show quoted text
> Hi > > fix: > > --- a/lib/Data/Validate/Email.pm > +++ b/lib/Data/Validate/Email.pm > @@ -348,7 +348,7 @@ sub is_username{ > > return unless defined($value); > > - my($username) = $value =~ /^([a-z0-9_\-\.]+)$/i; > + my($username) = $value =~ /^([a-z0-9_\-\.+]+)$/i; > > return $username; > } > diff --git a/lib/auto/Data/Validate/Email/is_username.al > b/lib/auto/Data/Validate/Email/is_username.al > index e2d07b0..902678a 100644 > --- a/lib/auto/Data/Validate/Email/is_username.al > +++ b/lib/auto/Data/Validate/Email/is_username.al > @@ -13,7 +13,7 @@ sub is_username{ > > return unless defined($value); > > - my($username) = $value =~ /^([a-z0-9_\-\.]+)$/i; > + my($username) = $value =~ /^([a-z0-9_\-\.+]+)$/i; > > return $username; > }