Skip to content

Commit

Permalink
disallow leading whitespace on email validation rule
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianoldham authored and tonycoz committed Feb 25, 2014
1 parent 6aa67dd commit 74a3bc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/cgi-bin/modules/DevHelp/Validate.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use vars qw(@EXPORT_OK @ISA);
@ISA = qw(Exporter);
use Carp qw(confess);

our $VERSION = "1.006";
our $VERSION = "1.007";

my $re_real =
qr/
Expand All @@ -25,7 +25,7 @@ my %built_ins =
(
email =>
{
match => qr/^[^\@]+\@[\w.-]+\.\w+$/,
match => qr/^[^\s\@][^\@]*\@[\w.-]+\.\w+$/,
error => '$n is not a valid email address',
},
phone =>
Expand Down

0 comments on commit 74a3bc3

Please sign in to comment.