Fixing a useless use of d switch in the zipcode macro

This commit is contained in:
Paul Driver 2011-03-31 09:51:58 -05:00
parent 11f7d40070
commit 6793c00861

View file

@ -92,9 +92,8 @@ An optional value to use instead of POST input.
sub getValue {
my $self = shift;
my $value = $self->SUPER::getValue(@_);
my $value = uc $self->SUPER::getValue(@_);
$value =~ tr/\r\n//d;
$value =~ tr/a-z/A-Z/d;
if ($value =~ /^[A-Z\d\s\-]+$/) {
return $value;
}